Skip to content

Instantly share code, notes, and snippets.

@ludovicc
Created August 8, 2012 10:33
Show Gist options
  • Save ludovicc/3294110 to your computer and use it in GitHub Desktop.
Save ludovicc/3294110 to your computer and use it in GitHub Desktop.
Performance results for sequential IO on Ubuntu 12.04 / Intel Core i7 920 @ 2.67GHz / HDD 1Gb 7200RPM read: 87Mb/s access time: 17ms
/usr/lib/jvm/java-1.7.0-openjdk-amd64/bin/java -Xmx4g -cp . TestSequentialIoPerf
RandomAccessFile write=54,328,651 read=60,534,405 bytes/sec
RandomAccessFile write=59,765,083 read=55,440,505 bytes/sec
RandomAccessFile write=61,703,473 read=61,216,559 bytes/sec
RandomAccessFile write=57,671,052 read=61,041,399 bytes/sec
RandomAccessFile write=59,171,939 read=60,650,931 bytes/sec
BufferedStreamFile write=52,955,816 read=65,539,670 bytes/sec
BufferedStreamFile write=69,623,157 read=70,514,917 bytes/sec
BufferedStreamFile write=83,528,763 read=96,234,948 bytes/sec
BufferedStreamFile write=82,230,007 read=95,076,715 bytes/sec
BufferedStreamFile write=79,031,402 read=93,509,576 bytes/sec
BufferedChannelFile write=94,241,078 read=86,669,487 bytes/sec
BufferedChannelFile write=92,634,054 read=85,473,117 bytes/sec
BufferedChannelFile write=91,182,297 read=85,953,812 bytes/sec
BufferedChannelFile write=93,051,785 read=86,939,910 bytes/sec
BufferedChannelFile write=91,969,508 read=90,481,344 bytes/sec
MemoryMappedFile write=38,754,849 read=83,575,633 bytes/sec
MemoryMappedFile write=40,871,105 read=80,933,421 bytes/sec
MemoryMappedFile write=40,017,976 read=83,130,378 bytes/sec
MemoryMappedFile write=40,465,111 read=80,060,201 bytes/sec
MemoryMappedFile write=39,599,748 read=78,447,144 bytes/sec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment