Skip to content

Instantly share code, notes, and snippets.

View tanakamura's full-sized avatar

Takashi Nakamura tanakamura

View GitHub Profile
#include <unistd.h>
#include <fcntl.h>
#include <pthread.h>
#include <stdio.h>
static double getsec()
{
struct timespec ts;
clock_gettime(CLOCK_MONOTONIC, &ts);
@tanakamura
tanakamura / cfl-32.txt
Created December 6, 2020 15:48
int-div-latency
-> : 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
@tanakamura
tanakamura / cfl-syscall.txt
Last active December 6, 2020 18:44
syscall
==== syscall ====
| | MCall/sec
================================
| close_minus1 | 3.78879
--------------------------------
| open_close | 0.77823
--------------------------------
| pipe_close | 0.43007
--------------------------------
| select_0 | 1.45407
@tanakamura
tanakamura / cfl-syscall-mitigationsoff.txt
Created December 6, 2020 18:41
syscall-mitigations=off
==== syscall ====
| | MCall/sec
================================
| close_minus1 | 9.58463
--------------------------------
| open_close | 1.10591
--------------------------------
| pipe_close | 0.57343
--------------------------------
| select_0 | 2.15039
@tanakamura
tanakamura / tgl.txt
Created December 11, 2020 17:43
membw
ostimer: clock_gettime
userland_timer: rdtscp
use_cpucyle: no
==== membw_1t ====
| |MiB/sec
=================================
| simple-long-copy | 8626.01679
---------------------------------
| libc-memcpy |16827.83568
---------------------------------
@tanakamura
tanakamura / tgl.txt
Created December 12, 2020 13:21
membw-release
ostimer: clock_gettime
userland_timer: rdtscp
use_cpucyle: no
==== membw_1t ====
| |MiB/sec
=================================
| simple-long-copy |23061.14028
---------------------------------
| libc-memcpy |30647.25286
---------------------------------
ostimer: clock_gettime
userland_timer: rdtscp
use_cpucyle: no
==== membw_1t ====
| |MiB/sec
=================================
| simple-long-copy |16795.94556
---------------------------------
| libc-memcpy |32935.04326
---------------------------------
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
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
------------------------------------------------
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