Skip to content

Instantly share code, notes, and snippets.

@slp
Last active February 26, 2017 07:45
Show Gist options
  • Save slp/4ae33c06f3d3f56e0c355de06f1c6fb4 to your computer and use it in GitHub Desktop.
Save slp/4ae33c06f3d3f56e0c355de06f1c6fb4 to your computer and use it in GitHub Desktop.
Running on KVM (4.4.0-21-generic/qemu-2.5.0).
Test computes cost of write() and read() moving 16384 x 4K blocks.
Filesystem is tmpfs for Linux and GNU Hurd (translator), memfs for Magenta.
Magenta (014c20cb2b99f1ec80c8d244c243bf17cf1f134f)
==================================================
elapsed time: 900.43 ms cost per call: 54.96 us
elapsed time: 826.44 ms cost per call: 50.44 us
elapsed time: 899.03 ms cost per call: 54.87 us
elapsed time: 790.24 ms cost per call: 48.23 us
elapsed time: 893.64 ms cost per call: 54.54 us
elapsed time: 828.34 ms cost per call: 50.56 us
elapsed time: 904.41 ms cost per call: 55.20 us
elapsed time: 785.66 ms cost per call: 47.95 us
elapsed time: 917.90 ms cost per call: 56.02 us
elapsed time: 788.17 ms cost per call: 48.11 us
GNU Hurd (debian-hurd-20170115)
===============================
elapsed time: 310.00 ms cost per call: 18.92 us
elapsed time: 370.00 ms cost per call: 22.58 us
elapsed time: 320.00 ms cost per call: 19.53 us
elapsed time: 370.00 ms cost per call: 22.58 us
elapsed time: 310.00 ms cost per call: 18.92 us
elapsed time: 370.00 ms cost per call: 22.58 us
elapsed time: 320.00 ms cost per call: 19.53 us
elapsed time: 360.00 ms cost per call: 21.97 us
elapsed time: 310.00 ms cost per call: 18.92 us
elapsed time: 360.00 ms cost per call: 21.97 us
HelenOS (r2583)
===============
elapsed time: 1010.00 ms cost per call: 61.65 us
elapsed time: 1080.00 ms cost per call: 65.92 us
elapsed time: 1080.00 ms cost per call: 65.92 us
elapsed time: 1060.00 ms cost per call: 64.70 us
elapsed time: 1070.00 ms cost per call: 65.31 us
elapsed time: 1060.00 ms cost per call: 64.70 us
elapsed time: 1070.00 ms cost per call: 65.31 us
elapsed time: 1070.00 ms cost per call: 65.31 us
elapsed time: 1070.00 ms cost per call: 65.31 us
elapsed time: 1070.00 ms cost per call: 65.31 us
Linux (3.16.0-4-amd64)
======================
elapsed time: 22.35 ms cost per call: 1.36 us
elapsed time: 16.73 ms cost per call: 1.02 us
elapsed time: 21.91 ms cost per call: 1.34 us
elapsed time: 16.74 ms cost per call: 1.02 us
elapsed time: 22.26 ms cost per call: 1.36 us
elapsed time: 16.72 ms cost per call: 1.02 us
elapsed time: 21.78 ms cost per call: 1.33 us
elapsed time: 16.84 ms cost per call: 1.03 us
elapsed time: 22.65 ms cost per call: 1.38 us
elapsed time: 17.23 ms cost per call: 1.05 us
FreeBSD (11.0-RELEASE-p1)
=========================
elapsed time: 27.92 ms cost per call: 1.70 us
elapsed time: 21.99 ms cost per call: 1.34 us
elapsed time: 27.82 ms cost per call: 1.70 us
elapsed time: 22.02 ms cost per call: 1.34 us
elapsed time: 27.83 ms cost per call: 1.70 us
elapsed time: 22.14 ms cost per call: 1.35 us
elapsed time: 28.03 ms cost per call: 1.71 us
elapsed time: 22.20 ms cost per call: 1.35 us
elapsed time: 27.75 ms cost per call: 1.69 us
elapsed time: 22.10 ms cost per call: 1.35 us
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment