Skip to content

Commit eedafdf

Browse files
committed
Add windows benchmarks of basic operations
1 parent 38c7a43 commit eedafdf

File tree

1 file changed

+156
-0
lines changed

1 file changed

+156
-0
lines changed

doc/decimal/benchmarks.adoc

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,38 @@ Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
6666
| 19.840
6767
|===
6868

69+
=== x64 Windows Results
70+
71+
Run using an Intel i9-11900k chipset running Windows 11 and Visual Studio 17.11.4
72+
73+
|===
74+
| Type | Runtime (us) | Ratio to `double`
75+
| `float`
76+
| 182,707
77+
| 0.943
78+
| `double`
79+
| 193,737
80+
| 1.000
81+
| `decimal32`
82+
| 3,097,942
83+
| 15.990
84+
| `decimal64`
85+
| 4,697,948
86+
| 24.249
87+
| `decimal128`
88+
| 17,267,609
89+
| 89.129
90+
| `decimal32_fast`
91+
| 809,847
92+
| 4.180
93+
| `decimal64_fast`
94+
| 1,043,657
95+
| 5.387
96+
| `decimal128_fast`
97+
| 888,053
98+
| 4.584
99+
|===
100+
69101
=== M1 macOS Results
70102

71103
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew Clang 18.1.8
@@ -267,6 +299,130 @@ Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
267299
| 129.307
268300
|===
269301

302+
=== x64 Windows Results
303+
304+
Run using an Intel i9-11900k chipset running Windows 11 and Visual Studio 17.11.4
305+
306+
==== Addition
307+
308+
|===
309+
| Type | Runtime (us) | Ratio to `double`
310+
| `float`
311+
| 67,019
312+
| 0.974
313+
| `double`
314+
| 68,820
315+
| 1.000
316+
| `decimal32`
317+
| 2,994,405
318+
| 43.511
319+
| `decimal64`
320+
| 4,531,755
321+
| 65.849
322+
| `decimal128`
323+
| 25,209,554
324+
| 366.311
325+
| `decimal32_fast`
326+
| 2,066,728
327+
| 30.031
328+
| `decimal64_fast`
329+
| 3,667,169
330+
| 53.286
331+
| `decimal128_fast`
332+
| 11,213,280
333+
| 162.936
334+
|===
335+
336+
==== Subtraction
337+
338+
|===
339+
| Type | Runtime (us) | Ratio to `double`
340+
| `float`
341+
| 60,912
342+
| 0.976
343+
| `double`
344+
| 62,409
345+
| 1.000
346+
| `decimal32`
347+
| 3,132,613
348+
| 50.194
349+
| `decimal64`
350+
| 3,864,498
351+
| 61.992
352+
| `decimal128`
353+
| 17,210,173
354+
| 275.764
355+
| `decimal32_fast`
356+
| 2,028,429
357+
| 32.502
358+
| `decimal64_fast`
359+
| 3,017,419
360+
| 48.349
361+
| `decimal128_fast`
362+
| 5,557,846
363+
| 89.055
364+
|===
365+
366+
==== Multiplication
367+
368+
|===
369+
| Type | Runtime (us) | Ratio to `double`
370+
| `float`
371+
| 60,742
372+
| 0.969
373+
| `double`
374+
| 62,658
375+
| 1.000
376+
| `decimal32`
377+
| 2,029,689
378+
| 32.393
379+
| `decimal64`
380+
| 8,805,524
381+
| 140.533
382+
| `decimal128`
383+
| 15,519,053
384+
| 247.689
385+
| `decimal32_fast`
386+
| 1,573,280
387+
| 25.109
388+
| `decimal64_fast`
389+
| 7,650,156
390+
| 122.094
391+
| `decimal128_fast`
392+
| 16,874,890
393+
| 269.317
394+
|===
395+
396+
==== Division
397+
398+
|===
399+
| Type | Runtime (us) | Ratio to `double`
400+
| `float`
401+
| 75,437
402+
| 0.936
403+
| `double`
404+
| 80,559
405+
| 1.000
406+
| `decimal32`
407+
| 2,832,016
408+
| 45.198
409+
| `decimal64`
410+
| 11,640,789
411+
| 185.783
412+
| `decimal128`
413+
| 32,470,044
414+
| 518.211
415+
| `decimal32_fast`
416+
| 1,660,332
417+
| 26.498
418+
| `decimal64_fast`
419+
| 11,266,972
420+
| 179.817
421+
| `decimal128_fast`
422+
| 11,201,820
423+
| 178.777
424+
|===
425+
270426
=== M1 macOS Results
271427

272428
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 14.4.1 and homebrew Clang 18.1.4

0 commit comments

Comments
 (0)