Skip to content

Commit 38c7a43

Browse files
committed
Add x64 linux <charconv> benchmarks
1 parent c3c98b4 commit 38c7a43

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
@@ -408,6 +408,32 @@ These benchmarks are automatically disabled if your compiler does not provide fe
408408

409409
==== `from_chars` general
410410

411+
===== x64 Linux Results
412+
413+
Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
414+
415+
|===
416+
| Type | Runtime (us) | Ratio to `double`
417+
| `float`
418+
| 10,308,818
419+
| 0.551
420+
| `double`
421+
| 18,692,513
422+
| 1.000
423+
| `decimal32`
424+
| 3,301,003
425+
| 0.177
426+
| `decimal64`
427+
| 4,580,001
428+
| 0.245
429+
| `decimal32_fast`
430+
| 3,321,788
431+
| 0.178
432+
| `decimal64_fast`
433+
| 4,591,311
434+
| 0.246
435+
|===
436+
411437
===== M1 macOS Results
412438

413439
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew GCC 14.2.0
@@ -436,6 +462,32 @@ Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebr
436462

437463
==== `from_chars` scientific
438464

465+
===== x64 Linux Results
466+
467+
Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
468+
469+
|===
470+
| Type | Runtime (us) | Ratio to `double`
471+
| `float`
472+
| 10,363,219
473+
| 0.554
474+
| `double`
475+
| 18,677,179
476+
| 1.000
477+
| `decimal32`
478+
| 3,296,877
479+
| 0.177
480+
| `decimal64`
481+
| 4,500,127
482+
| 0.241
483+
| `decimal32_fast`
484+
| 3,381,651
485+
| 0.181
486+
| `decimal64_fast`
487+
| 4,496,194
488+
| 0.241
489+
|===
490+
439491
===== M1 macOS Results
440492

441493
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew GCC 14.2.0
@@ -466,6 +518,32 @@ Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebr
466518

467519
==== `to_chars` general shortest representation
468520

521+
===== x64 Linux Results
522+
523+
Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
524+
525+
|===
526+
| Type | Runtime (us) | Ratio to `double`
527+
| `float`
528+
| 2,839,146
529+
| 0.841
530+
| `double`
531+
| 3,374,946
532+
| 1.000
533+
| `decimal32`
534+
| 4,253,304
535+
| 1.260
536+
| `decimal64`
537+
| 6,885,679
538+
| 2.040
539+
| `decimal32_fast`
540+
| 4,453,957
541+
| 1.320
542+
| `decimal64_fast`
543+
| 7,827,910
544+
| 2.319
545+
|===
546+
469547
===== M1 macOS Results
470548

471549
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew GCC 14.2.0
@@ -494,6 +572,32 @@ Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebr
494572

495573
==== `to_chars` general 6-digits of precision
496574

575+
===== x64 Linux Results
576+
577+
Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
578+
579+
|===
580+
| Type | Runtime (us) | Ratio to `double`
581+
| `float`
582+
| 5,226,353
583+
| 0.957
584+
| `double`
585+
| 5,458,987
586+
| 1.000
587+
| `decimal32`
588+
| 3,782,692
589+
| 0.693
590+
| `decimal64`
591+
| 5,368,162
592+
| 0.983
593+
| `decimal32_fast`
594+
| 3,611,498
595+
| 0.662
596+
| `decimal64_fast`
597+
| 6,025,340
598+
| 1.104
599+
|===
600+
497601
===== M1 macOS Results
498602

499603
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew GCC 14.2.0
@@ -522,6 +626,32 @@ Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebr
522626

523627
==== `to_chars` scientific shortest representation
524628

629+
===== x64 Linux Results
630+
631+
Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
632+
633+
|===
634+
| Type | Runtime (us) | Ratio to `double`
635+
| `float`
636+
| 2,835,528
637+
| 0.849
638+
| `double`
639+
| 3,338,216
640+
| 1.000
641+
| `decimal32`
642+
| 2,887,451
643+
| 0.865
644+
| `decimal64`
645+
| 5,218,195
646+
| 1.563
647+
| `decimal32_fast`
648+
| 3,033,115
649+
| 0.909
650+
| `decimal64_fast`
651+
| 6,103,323
652+
| 1.828
653+
|===
654+
525655
===== M1 macOS Results
526656

527657
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew GCC 14.2.0
@@ -550,6 +680,32 @@ Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebr
550680

551681
==== `to_chars` scientific 6-digits of precision
552682

683+
===== x64 Linux Results
684+
685+
Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
686+
687+
|===
688+
| Type | Runtime (us) | Ratio to `double`
689+
| `float`
690+
| 4,686,460
691+
| 0.938
692+
| `double`
693+
| 4,993,886
694+
| 1.000
695+
| `decimal32`
696+
| 2,919,727
697+
| 0.585
698+
| `decimal64`
699+
| 4,157,802
700+
| 0.833
701+
| `decimal32_fast`
702+
| 3,052,228
703+
| 0.611
704+
| `decimal64_fast`
705+
| 5,597,538
706+
| 1.121
707+
|===
708+
553709
===== M1 macOS Results
554710

555711
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew GCC 14.2.0

0 commit comments

Comments
 (0)