Skip to content

Commit a0f40ed

Browse files
committed
bench: updated benchmarks
1 parent b25f22a commit a0f40ed

File tree

5 files changed

+270
-20
lines changed

5 files changed

+270
-20
lines changed

benches/results/metrics.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# TYPE stream_1KB_ops gauge
2-
stream_1KB_ops{name="send 1Kib of data"} 214
2+
stream_1KB_ops{name="send 1Kib of data"} 157
33

44
# TYPE stream_1KB_margin gauge
5-
stream_1KB_margin{name="send 1Kib of data"} 0.95
5+
stream_1KB_margin{name="send 1Kib of data"} 1.08
66

77
# TYPE stream_1KB_samples counter
8-
stream_1KB_samples{name="send 1Kib of data"} 84
8+
stream_1KB_samples{name="send 1Kib of data"} 82
Lines changed: 116 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,116 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6+
<meta http-equiv="X-UA-Compatible" />
7+
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/chart.min.js"></script>
8+
<title>stream_1KB</title>
9+
<style>
10+
body {
11+
margin: 0;
12+
padding: 0;
13+
background: #ddd;
14+
}
15+
16+
.container {
17+
box-sizing: border-box;
18+
height: 96vh;
19+
width: 96vw;
20+
margin: 2vh 2vw;
21+
resize: both;
22+
overflow: hidden;
23+
padding: 20px;
24+
background: white;
25+
box-shadow: 0 0 15px #aaa;
26+
}
27+
</style>
28+
</head>
29+
<body>
30+
<div class="container">
31+
<canvas id="chart1692341002348" width="16" height="9"></canvas>
32+
</div>
33+
<script>
34+
const format = (num) => {
35+
const [whole, fraction] = String(num).split('.')
36+
const chunked = []
37+
whole
38+
.split('')
39+
.reverse()
40+
.forEach((char, index) => {
41+
if (index % 3 === 0) {
42+
chunked.unshift([char])
43+
} else {
44+
chunked[0].unshift(char)
45+
}
46+
})
47+
48+
const fractionStr = fraction !== undefined ? '.' + fraction : ''
49+
50+
return (
51+
chunked.map((chunk) => chunk.join('')).join(' ') + fractionStr
52+
)
53+
}
54+
const ctx1692341002348 = document
55+
.getElementById('chart1692341002348')
56+
.getContext('2d')
57+
const chart1692341002348 = new Chart(ctx1692341002348, {
58+
type: 'bar',
59+
data: {
60+
labels: ["send 1Kib of data"],
61+
datasets: [
62+
{
63+
data: [157],
64+
backgroundColor: ["hsl(120, 85%, 55%)"],
65+
borderColor: ["hsl(120, 85%, 55%)"],
66+
borderWidth: 2,
67+
},
68+
],
69+
},
70+
options: {
71+
maintainAspectRatio: false,
72+
plugins: {
73+
title: {
74+
display: true,
75+
text: 'stream_1KB',
76+
font: { size: 20 },
77+
padding: 20,
78+
},
79+
legend: {
80+
display: false,
81+
},
82+
tooltip: {
83+
callbacks: {
84+
label: (context) => {
85+
return format(context.parsed.y) + ' ops/s'
86+
},
87+
},
88+
displayColors: false,
89+
backgroundColor: '#222222',
90+
padding: 10,
91+
cornerRadius: 5,
92+
intersect: false,
93+
},
94+
},
95+
scales: {
96+
x: {
97+
grid: {
98+
color: '#888888',
99+
},
100+
},
101+
y: {
102+
title: {
103+
display: true,
104+
text: 'Operations per second',
105+
padding: 10,
106+
},
107+
grid: {
108+
color: '#888888',
109+
},
110+
},
111+
},
112+
},
113+
})
114+
</script>
115+
</body>
116+
</html>

benches/results/stream_1KB.json

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
{
2+
"name": "stream_1KB",
3+
"date": "2023-08-18T06:43:22.348Z",
4+
"version": "0.0.17",
5+
"results": [
6+
{
7+
"name": "send 1Kib of data",
8+
"ops": 157,
9+
"margin": 1.08,
10+
"options": {
11+
"delay": 0.005,
12+
"initCount": 1,
13+
"minTime": 0.05,
14+
"maxTime": 5,
15+
"minSamples": 5
16+
},
17+
"samples": 82,
18+
"promise": true,
19+
"details": {
20+
"min": 0.005767022555555556,
21+
"max": 0.007130931333333334,
22+
"mean": 0.006382768020325203,
23+
"median": 0.006382441388888889,
24+
"standardDeviation": 0.00031921242575240033,
25+
"marginOfError": 0.00006909218602306676,
26+
"relativeMarginOfError": 1.082479980520215,
27+
"standardErrorOfMean": 0.00003525111531789121,
28+
"sampleVariance": 1.0189657275473169e-7,
29+
"sampleResults": [
30+
0.005767022555555556,
31+
0.005792597444444445,
32+
0.0057999202222222225,
33+
0.005884176888888888,
34+
0.005910856111111111,
35+
0.005947400666666667,
36+
0.005974421666666667,
37+
0.005983826,
38+
0.006002106,
39+
0.006003759222222222,
40+
0.006010671111111111,
41+
0.006047154444444445,
42+
0.0060527671111111105,
43+
0.006066597666666667,
44+
0.006072378666666666,
45+
0.006073086666666667,
46+
0.0060989243333333335,
47+
0.006100501666666667,
48+
0.006107313444444444,
49+
0.006113054222222223,
50+
0.006123377111111111,
51+
0.006134009333333333,
52+
0.006135501,
53+
0.006143615222222222,
54+
0.0061465942222222215,
55+
0.006196987111111111,
56+
0.006204024777777778,
57+
0.0062322079999999995,
58+
0.006232642111111112,
59+
0.006244778222222223,
60+
0.006248661222222222,
61+
0.006256433666666667,
62+
0.006260417888888889,
63+
0.006267055888888889,
64+
0.0062697153333333335,
65+
0.006291894,
66+
0.006298452888888889,
67+
0.006305238,
68+
0.006340534555555556,
69+
0.006361219222222222,
70+
0.006373142777777778,
71+
0.00639174,
72+
0.006399717333333333,
73+
0.006403307444444444,
74+
0.0064049461111111115,
75+
0.006431452666666667,
76+
0.0064417354444444444,
77+
0.006444774444444444,
78+
0.006451884666666667,
79+
0.0064600433333333335,
80+
0.006461426,
81+
0.0064656639999999994,
82+
0.006492094888888889,
83+
0.006524187777777778,
84+
0.006537884666666666,
85+
0.006551734111111112,
86+
0.006556166888888889,
87+
0.0065649701111111115,
88+
0.006588004777777778,
89+
0.006592720333333333,
90+
0.006614906555555556,
91+
0.006627802111111111,
92+
0.0066431143333333335,
93+
0.006643693111111111,
94+
0.006657746333333333,
95+
0.0066654263333333335,
96+
0.006673224333333333,
97+
0.006706349222222223,
98+
0.006709808888888889,
99+
0.006712497444444444,
100+
0.006721891777777778,
101+
0.006724700444444444,
102+
0.006771452000000001,
103+
0.0067860306666666665,
104+
0.006797571222222222,
105+
0.006859681777777777,
106+
0.0068622376666666665,
107+
0.006877356222222223,
108+
0.006993827111111111,
109+
0.007042969777777778,
110+
0.0071242653333333334,
111+
0.007130931333333334
112+
]
113+
},
114+
"completed": true,
115+
"percentSlower": 0
116+
}
117+
],
118+
"fastest": {
119+
"name": "send 1Kib of data",
120+
"index": 0
121+
},
122+
"slowest": {
123+
"name": "send 1Kib of data",
124+
"index": 0
125+
}
126+
}
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# TYPE stream_1KB_ops gauge
2+
stream_1KB_ops{name="send 1Kib of data"} 157
3+
4+
# TYPE stream_1KB_margin gauge
5+
stream_1KB_margin{name="send 1Kib of data"} 1.08
6+
7+
# TYPE stream_1KB_samples counter
8+
stream_1KB_samples{name="send 1Kib of data"} 82

benches/results/system.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
11
{
22
"cpu": {
33
"manufacturer": "AMD",
4-
"brand": "Ryzen 7 5800X 8-Core Processor",
4+
"brand": "Ryzen 7 2700X Eight-Core Processor",
55
"vendor": "AMD",
6-
"family": "25",
7-
"model": "33",
8-
"stepping": "0",
6+
"family": "23",
7+
"model": "8",
8+
"stepping": "2",
99
"revision": "",
1010
"voltage": "",
11-
"speed": 3.8,
12-
"speedMin": null,
13-
"speedMax": null,
14-
"governor": "",
11+
"speed": 3.7,
12+
"speedMin": 2.2,
13+
"speedMax": 3.7,
14+
"governor": "performance",
1515
"cores": 16,
1616
"physicalCores": 8,
1717
"performanceCores": 8,
1818
"efficiencyCores": 0,
1919
"processors": 1,
2020
"socket": "",
21-
"flags": "fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm rep_good nopl cpuid extd_apicid pni pclmulqdq ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand hypervisor lahf_lm cmp_legacy cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw topoext ibrs ibpb stibp vmmcall fsgsbase bmi1 avx2 smep bmi2 erms rdseed adx smap clflushopt clwb sha_ni xsaveopt xsavec xgetbv1 xsaves xsaveerptr arat vaes vpclmulqdq rdpid",
22-
"virtualization": false,
21+
"flags": "fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good nopl nonstop_tsc cpuid extd_apicid aperfmperf rapl pni pclmulqdq monitor ssse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw skinit wdt tce topoext perfctr_core perfctr_nb bpext perfctr_llc mwaitx cpb hw_pstate ssbd ibpb vmmcall fsgsbase bmi1 avx2 smep bmi2 rdseed adx smap clflushopt sha_ni xsaveopt xsavec xgetbv1 clzero irperf xsaveerptr arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov succor smca sev sev_es",
22+
"virtualization": true,
2323
"cache": {
2424
"l1d": 262144,
25-
"l1i": 262144,
25+
"l1i": 524288,
2626
"l2": 4194304,
27-
"l3": 33554432
27+
"l3": 16777216
2828
}
2929
},
3030
"osInfo": {
3131
"platform": "linux",
32-
"distro": "Faulkes-Work",
33-
"release": "unknown",
34-
"kernel": "4.19.190",
32+
"distro": "nixos",
33+
"release": "22.11",
34+
"kernel": "6.1.23",
3535
"arch": "x64"
3636
},
3737
"system": {
38-
"model": "Virtual Machine",
39-
"manufacturer": "Microsoft Corporation"
38+
"model": "System Product Name",
39+
"manufacturer": "System manufacturer"
4040
}
4141
}

0 commit comments

Comments
 (0)