Unix 系の場合.
$ wget http://www.netapp.com/ftp/postmark-1_5.c $ gcc -O postmark-1_5.c -o postmark $ ./postmark
WindowNT系 & Visual C++の場合.
http://www.netapp.com/ftp/postmark-1_5.c をローカルに保存. C:\postmark>cl postmark-1_5.c C:\postmark>postmark-1_5.execl.exe (VC++の command line compiler)は "C:\Program Files\Microsoft Visual Studio\VC98\bin\cl.exe" などにあります.
| $ ./postmark |
| pm> |
[sane@hostname ~/postmark]$ ./postmark PostMark v1.5 : 3/27/01 pm>show Current configuration is: The base number of files is 500 Transactions: 500 Files range between 500 bytes and 9.77 kilobytes in size Working directory: /home/sane/postmark Block sizes are: read=512 bytes, write=512 bytes Biases are: read/append=5, create/delete=5 Using Unix buffered file I/O Random number generator seed is 42 Report format is verbose. pm>run Creating files...Done Performing transactions..........Done Deleting files...Done Time: 1 seconds total 1 seconds of transactions (500 per second) Files: 764 created (764 per second) Creation alone: 500 files (500 per second) Mixed with transactions: 264 files (264 per second) 243 read (243 per second) 257 appended (257 per second) 764 deleted (764 per second) Deletion alone: 528 files (528 per second) Mixed with transactions: 236 files (236 per second) Data: 1.36 megabytes read (1.36 megabytes per second) 4.45 megabytes written (4.45 megabytes per second) pm>quit [sane@hostname ~/postmark]$
てな感じで測定ができました.
ただし, この測定は著しい問題があります. 測定時間が1秒しかありません!
| pm>set transactions 10000 |
[sane@hostname ~/postmark]$ ./postmark PostMark v1.5 : 3/27/01 pm>set transactions 10000 pm>show Current configuration is: The base number of files is 500 Transactions: 10000 Files range between 500 bytes and 9.77 kilobytes in size Working directory: /home/sane/postmark Block sizes are: read=512 bytes, write=512 bytes Biases are: read/append=5, create/delete=5 Using Unix buffered file I/O Random number generator seed is 42 Report format is verbose. pm>run Creating files...Done Performing transactions..........Done Deleting files...Done Time: 8 seconds total 8 seconds of transactions (1250 per second) Files: 5564 created (695 per second) Creation alone: 500 files (500 per second) Mixed with transactions: 5064 files (633 per second) 4999 read (624 per second) 4967 appended (620 per second) 5564 deleted (695 per second) Deletion alone: 628 files (628 per second) Mixed with transactions: 4936 files (617 per second) Data: 32.12 megabytes read (4.02 megabytes per second) 35.61 megabytes written (4.45 megabytes per second) pm>quit [sane@hostname ~/postmark]$