>OK, I have a better version at:

The script is now broken, I get:
Collecting sizing information ...
Running random access timing test ...
Running sequential access timing test ...
Running null loop timing test ...
random test:       14
sequential test:   16
null timing test:  14

random_page_cost = 0.000000


Tue, 10 Sep 2002 10:17:01 +0200
"Mario Weilguni" <mario.weilguni@icomedias.com>
Re: Script to compute random page cost
I was attempting to measure random page cost a while ago -
I used three programs in this archive :

http://techdocs.postgresql.org/markir/download/benchtool/

It writes a single big file and seems to give more realistic 
measurements  ( like 6 for a Solaris scsi system and 10 for a Linux ide 
one...)

Have a look and see if you can cannibalize it for your program


Cheers

Mark


Tue, 10 Sep 2002 22:33:19 +1200
Mark Kirkwood <markir@slingshot.co.nz>
Re: Script to compute random page cost