Skip to content

Instantly share code, notes, and snippets.

@zeux
Created February 2, 2014 18:06
Show Gist options
  • Save zeux/8772320 to your computer and use it in GitHub Desktop.
Save zeux/8772320 to your computer and use it in GitHub Desktop.
zeux@zeux-laptop ~/BlogCode/2014/2/TestDisk $ sudo ./test_disk 4096 128 .
Creating file: './largeFile' size: 4294967296 bytes
file created, let's do some testing!
Testing block size: 65536 bytes, will read 2048 blocks.
cache is cleared
Wall elapsed: 2.11037
Avg time per block: 1.03045 ms
Ignore: 18446744073657203244
Testing block size: 131072 bytes, will read 1024 blocks.
cache is cleared
Wall elapsed: 1.35389
Avg time per block: 1.32216 ms
Ignore: 18446744073657147446
Testing block size: 262144 bytes, will read 512 blocks.
cache is cleared
Wall elapsed: 0.849762
Avg time per block: 1.65969 ms
Ignore: 18446744073656368232
Testing block size: 524288 bytes, will read 256 blocks.
cache is cleared
Wall elapsed: 0.599989
Avg time per block: 2.34371 ms
Ignore: 18446744073656305462
Testing block size: 1048576 bytes, will read 128 blocks.
cache is cleared
Wall elapsed: 0.473849
Avg time per block: 3.70195 ms
Ignore: 18446744073656395776
zeux@zeux-laptop ~/BlogCode/2014/2/TestDisk $ sudo ./test_disk 32768 128 .
Creating file: './largeFile' size: 34359738368 bytes
file created, let's do some testing!
Testing block size: 65536 bytes, will read 2048 blocks.
cache is cleared
Wall elapsed: 2.19049
Avg time per block: 1.06958 ms
Ignore: 18446744073657203244
Testing block size: 131072 bytes, will read 1024 blocks.
cache is cleared
Wall elapsed: 1.42795
Avg time per block: 1.39448 ms
Ignore: 18446744073657147446
Testing block size: 262144 bytes, will read 512 blocks.
cache is cleared
Wall elapsed: 0.893126
Avg time per block: 1.74439 ms
Ignore: 18446744073656368232
Testing block size: 524288 bytes, will read 256 blocks.
cache is cleared
Wall elapsed: 0.624549
Avg time per block: 2.43964 ms
Ignore: 18446744073656305462
Testing block size: 1048576 bytes, will read 128 blocks.
cache is cleared
Wall elapsed: 0.484103
Avg time per block: 3.78205 ms
Ignore: 18446744073656395776
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment