Last active
April 2, 2017 07:50
-
-
Save sitsofe/45fa767f72439cd1f8c148794382003b to your computer and use it in GitHub Desktop.
fio timeval_add_msec benchmarks
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
valgrind --tool=cachegrind --branch-sim=yes fio --thread --eta=never --ioengine=libaio --readwrite=write --time_based=1 --runtime=60 --filename=/tmp/fio --size=1M --direct=1 --name=test --write_iops_log=/tmp/test --log_avg_msec=5500 | |
Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim | |
. . . . . . . . . . . . . void timeval_add_msec(struct timeval *tv, unsigned int msec) | |
. . . . . . . . . . . . . { | |
1,744 242 1 872 0 0 371 0 0 0 0 0 0 tv->tv_usec += 1000 * msec; | |
1,002 241 1 0 0 0 0 0 0 501 126 0 0 if (tv->tv_usec >= 1000000) { | |
390 0 0 130 0 0 130 0 0 0 0 0 0 tv->tv_usec -= 1000000; | |
130 0 0 130 0 0 0 0 0 0 0 0 0 tv->tv_sec++; | |
. . . . . . . . . . . . . } | |
. . . . . . . . . . . . . } | |
Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim | |
. . . . . . . . . . . . . void timeval_add_msec(struct timeval *tv, unsigned int msec) | |
. . . . . . . . . . . . . { | |
1,006 252 1 503 0 0 0 0 0 0 0 0 0 tv->tv_usec += 1000 * msec; | |
4,024 242 1 503 0 0 0 0 0 0 0 0 0 tv->tv_sec += tv->tv_usec / 1000000; | |
2,012 0 0 503 0 0 503 0 0 0 0 0 0 tv->tv_usec %= 1000000; | |
. . . . . . . . . . . . . } | |
Ir I1mr ILmr Dr D1mr DLmr Dw D1mw DLmw Bc Bcm Bi Bim | |
. . . . . . . . . . . . . void timeval_add_msec(struct timeval *tv, unsigned int msec) | |
. . . . . . . . . . . . . { | |
1,509 251 1 503 0 0 503 0 0 0 0 0 0 tv->tv_usec += 1000 * msec; | |
1,006 241 1 0 0 0 0 0 0 503 125 0 0 if (tv->tv_usec >= 1000000) { | |
1,048 0 0 131 0 0 0 0 0 0 0 0 0 tv->tv_sec += tv->tv_usec / 1000000; | |
896 0 0 503 0 0 131 0 0 0 0 0 0 tv->tv_usec %= 1000000; | |
. . . . . . . . . . . . . } | |
. . . . . . . . . . . . . } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment