All filesystems were tested on the same partition with offset 1MiB and size 4GiB, mounted with noatime and discard, except tmpfs. The two btrfs tests additionally tries out autodefrag vs nodatacow, in an attempt to isolate the impact of copy-on-write. I really had hoped to run the sqlite benchmark too, but PTS said it «failed to produce a result». More overwhelming than these results, is a real sqlite workload I have that takes tens of minutes on a rotating hdd (and slows down the machine) or a split second on tmpfs.
Compare your own system(s) to this result file with the
Phoronix Test Suite by running the command:
phoronix-test-suite benchmark 1509207-BE-CHEAPOKIN75
FS transaction performance comparison, cheapo Kingston 120GB SSD,
"IOzone 3.405 - Record Size: 4Kb - File Size: 512MB - Disk Test: Read Performance",
Higher Results Are Better
"tmpfs",3021.7734375,3007.99609375,3032.80078125
"f2fs",3149.0439453125,3066.5283203125,3079.05078125
"xfs",2999.2919921875,2915.0048828125,2908.8095703125
"ext4",3088.1494140625,3080.8486328125,3011.4091796875
"btrfs autodefrag",3123.89453125,3150.9052734375,3139.251953125
"btrfs nodatacow",2978.5791015625,2996.3623046875,3008.4384765625
"IOzone 3.405 - Record Size: 4Kb - File Size: 512MB - Disk Test: Write Performance",
Higher Results Are Better
"tmpfs",1851.3681640625,1877.8994140625,1850.9423828125
"f2fs",344.3154296875,342.787109375,343.7265625
"xfs",285.7841796875,284.2998046875,286.5322265625
"ext4",338.951171875,336.5234375,338.078125
"btrfs autodefrag",362.6279296875,362.2802734375,361.16015625
"btrfs nodatacow",363.7568359375,363.21875,364.078125
"PostgreSQL pgbench 9.4.3 - Scaling: On-Disk - Test: Single Thread - Mode: Read Write",
Higher Results Are Better
"tmpfs",215.335853,215.682061,215.481911
"f2fs",196.409894,197.364344,193.980766
"xfs",186.776058,187.059765,181.947701
"ext4",197.994605,195.316143,195.731167
"btrfs autodefrag",166.699744,168.069885
"btrfs nodatacow",185.067993,184.486688,185.172206
"PostMark 1.51 - Disk Transaction Performance",
Higher Results Are Better
"tmpfs",3731,3731,3787
"f2fs",2777,2808,2808
"xfs",2427,2427,2450
"ext4",2475,2525,2551
"btrfs autodefrag",535,421,428,411,462,408
"btrfs nodatacow",929,1004,545,411,418,430