This file contains hidden or 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
#include <unistd.h> | |
#include <fcntl.h> | |
#include <pthread.h> | |
#include <stdio.h> | |
static double getsec() | |
{ | |
struct timespec ts; | |
clock_gettime(CLOCK_MONOTONIC, &ts); |
This file contains hidden or 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
-> : divider_bit | |
| |27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|29|30|31|32 | |
==================================================================================================== | |
| 0 |25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25|25 | |
---------------------------------------------------------------------------------------------------- | |
| 1 |27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27 | |
---------------------------------------------------------------------------------------------------- | |
| 2 |27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27 | |
---------------------------------------------------------------------------------------------------- | |
| 3 |27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27|27 |
This file contains hidden or 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
==== syscall ==== | |
| | MCall/sec | |
================================ | |
| close_minus1 | 3.78879 | |
-------------------------------- | |
| open_close | 0.77823 | |
-------------------------------- | |
| pipe_close | 0.43007 | |
-------------------------------- | |
| select_0 | 1.45407 |
This file contains hidden or 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
==== syscall ==== | |
| | MCall/sec | |
================================ | |
| close_minus1 | 9.58463 | |
-------------------------------- | |
| open_close | 1.10591 | |
-------------------------------- | |
| pipe_close | 0.57343 | |
-------------------------------- | |
| select_0 | 2.15039 |
This file contains hidden or 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
ostimer: clock_gettime | |
userland_timer: rdtscp | |
use_cpucyle: no | |
==== membw_1t ==== | |
| |MiB/sec | |
================================= | |
| simple-long-copy | 8626.01679 | |
--------------------------------- | |
| libc-memcpy |16827.83568 | |
--------------------------------- |
This file contains hidden or 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
ostimer: clock_gettime | |
userland_timer: rdtscp | |
use_cpucyle: no | |
==== membw_1t ==== | |
| |MiB/sec | |
================================= | |
| simple-long-copy |23061.14028 | |
--------------------------------- | |
| libc-memcpy |30647.25286 | |
--------------------------------- |
This file contains hidden or 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
ostimer: clock_gettime | |
userland_timer: rdtscp | |
use_cpucyle: no | |
==== membw_1t ==== | |
| |MiB/sec | |
================================= | |
| simple-long-copy |16795.94556 | |
--------------------------------- | |
| libc-memcpy |32935.04326 | |
--------------------------------- |
This file contains hidden or 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
ostimer: clock_gettime | |
userland_timer: rdtscp | |
perf_counter: yes | |
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz | |
==== membw_1t ==== | |
| |MiB/sec | |
================================= | |
| simple-long-copy |14401.82962 | |
--------------------------------- | |
| libc-memcpy |18055.36681 |
This file contains hidden or 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
ostimer: clock_gettime | |
userland_timer: rdtscp | |
perf_counter: yes | |
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz | |
==== actual-freq ==== | |
-> : num_thread | |
| | 1| 2| 4| 7 | |
================================================ | |
| iadd64 (0.01 [sec]) |3.38|3.38|3.38|2.78 | |
------------------------------------------------ |
This file contains hidden or 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
ostimer: clock_gettime | |
userland_timer: rdtscp | |
perf_counter: yes | |
Intel(R) Core(TM) i5-8250U CPU @ 1.60GHz | |
==== actual-freq ==== | |
-> : num_thread | |
| | 1| 2| 4| 7 | |
================================================= | |
| iadd64 (0.01 [sec]) |3.39|3.39|3.39|3.39 | |
| fadd64 (0.01 [sec]) |3.39|3.39|3.39|3.39 |