Skip to content

Instantly share code, notes, and snippets.

@JJJollyjim
Created January 7, 2020 02:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save JJJollyjim/0aff7bac58fca8134df5631f0f1cd30b to your computer and use it in GitHub Desktop.
Save JJJollyjim/0aff7bac58fca8134df5631f0f1cd30b to your computer and use it in GitHub Desktop.

Benchmark

dd

~/M/rio ❯❯❯ command time dd if=/dev/zero bs=1M count=4096 of=file
0.00user 5.15system 0:12.81elapsed 40%CPU (0avgtext+0avgdata 2980maxresident)k
80inputs+8388608outputs (1major+340minor)pagefaults 0swaps

rio

~/M/rio ❯❯❯ command time target/release/examples/o_direct
0.19user 0.24system 0:14.15elapsed 3%CPU (0avgtext+0avgdata 4168maxresident)k
4904inputs+0outputs (1major+940minor)pagefaults 0swaps

System info

Kernel

5.4.7

Filesystem

btrfs, 19GB free without the 4GB file

Disk

Laptop nvme ssd, probably fairly mediocre?

~/M/rio ❯❯❯ sudo smartctl -i /dev/nvme0
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.4.7-arch1-1] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Model Number:                       KXG50ZNV256G TOSHIBA
Serial Number:                      X8CB31GNK5PS
Firmware Version:                   AAXA4103
PCI Vendor/Subsystem ID:            0x1179
IEEE OUI Identifier:                0x00080d
Total NVM Capacity:                 256,060,514,304 [256 GB]
Unallocated NVM Capacity:           0
Controller ID:                      0
Number of Namespaces:               1
Namespace 1 Size/Capacity:          256,060,514,304 [256 GB]
Namespace 1 Formatted LBA Size:     512
Namespace 1 IEEE EUI-64:            00080d 030046562f
Local Time is:                      Tue Jan  7 15:01:21 2020 NZDT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment