-
-
Save gentryx/7053b2a576ee8410be75 to your computer and use it in GitHub Desktop.
AFIO Benchmark: AFIO vs. OpenMP
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gentryx@neuromancer ~/afio_benchmark $ ll | |
insgesamt 244 | |
-rw-r--r-- 1 gentryx users 14767 31. Aug 00:47 afio.cpp | |
-rwxr-xr-x 1 gentryx users 440 31. Aug 00:47 benchmark | |
drwxr-xr-x 14 gentryx users 4096 24. Aug 10:42 boost.afio | |
-rw-r--r-- 1 gentryx users 3389 31. Aug 00:47 openmp.cpp | |
-rwxr-xr-x 1 gentryx users 218096 31. Aug 00:39 test_exe | |
00:48:02 - 0 | |
gentryx@neuromancer ~/afio_benchmark $ du -m --max-depth=1 | |
80 ./boost.afio | |
80 . | |
00:48:04 - 0 | |
gentryx@neuromancer ~/afio_benchmark $ cat benchmark | |
#!/bin/bash | |
g++ -O3 -march=native -fopenmp -std=c++11 afio.cpp -Iboost.afio/include/ -Iboost.afio -lboost_system -lpthread -lboost_filesystem -ldl -o test_exe | |
for ((i=0; i<10; ++i)) do | |
./test_exe niall | grep ^The | |
done | |
g++ -O3 -march=native -fopenmp -std=c++11 openmp.cpp -Iboost.afio/include/ -Iboost.afio -lboost_system -lpthread -lboost_filesystem -ldl -o test_exe | |
for ((i=0; i<10; ++i)) do | |
./test_exe niall | grep ^The | |
done | |
00:49:10 - 0 | |
gentryx@neuromancer ~/afio_benchmark $ ./benchmark | |
The search took 0.270797 seconds which was 8947.68 files per second or 263.433 Mb/sec. | |
The search took 0.557394 seconds which was 4347.01 files per second or 127.983 Mb/sec. | |
The search took 0.572427 seconds which was 4232.85 files per second or 124.622 Mb/sec. | |
The search took 0.269116 seconds which was 9003.56 files per second or 265.079 Mb/sec. | |
The search took 0.272555 seconds which was 8889.95 files per second or 261.734 Mb/sec. | |
The search took 0.267085 seconds which was 9072.01 files per second or 267.094 Mb/sec. | |
The search took 0.271559 seconds which was 8922.57 files per second or 262.694 Mb/sec. | |
The search took 0.273053 seconds which was 8873.75 files per second or 261.257 Mb/sec. | |
The search took 0.274093 seconds which was 8840.07 files per second or 260.265 Mb/sec. | |
The search took 0.274805 seconds which was 8817.17 files per second or 259.591 Mb/sec. | |
The search took 0.119891 seconds which was 20243.4 files per second or 591.072 Mb/sec. | |
The search took 0.117145 seconds which was 20709.4 files per second or 604.96 Mb/sec. | |
The search took 0.117388 seconds which was 20700.6 files per second or 603.731 Mb/sec. | |
The search took 0.118453 seconds which was 20497.6 files per second or 598.291 Mb/sec. | |
The search took 0.117273 seconds which was 20686.8 files per second or 604.238 Mb/sec. | |
The search took 0.117758 seconds which was 20618.6 files per second or 601.708 Mb/sec. | |
The search took 0.120818 seconds which was 20088.1 files per second or 586.538 Mb/sec. | |
The search took 0.126003 seconds which was 19261.5 files per second or 562.452 Mb/sec. | |
The search took 0.116701 seconds which was 20796.8 files per second or 607.266 Mb/sec. | |
The search took 0.120875 seconds which was 20111.6 files per second or 586.314 Mb/sec. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment