You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: doc/decimal/benchmarks.adoc
+78-78Lines changed: 78 additions & 78 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ An example on Linux with b2: `../../../b2 cxxstd=20 toolset=gcc-13 define=BOOST_
22
22
23
23
== Comparisons
24
24
25
-
The benchmark for comparisons generates a random vector containing 2,000,000 elements and does operations `>`, `>=`, `<`, `\<=`, `==`, and `!=` between `vec[i] and vec[i + 1]`.
25
+
The benchmark for comparisons generates a random vector containing 20,000,000 elements and does operations `>`, `>=`, `<`, `\<=`, `==`, and `!=` between `vec[i] and vec[i + 1]`.
26
26
This is repeated 5 times to generate stable results.
27
27
28
28
=== x64 Linux Results
@@ -68,39 +68,39 @@ Run using an Intel i9-11900k chipset running RHEL 9.4 and GCC 11.4.1-3
68
68
69
69
=== M1 macOS Results
70
70
71
-
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 14.4.1 and homebrew Clang 18.1.4
71
+
Run using a Macbook pro with M1 pro chipset running macOS Sonoma 15.0 and homebrew Clang 18.1.8
72
72
73
73
|===
74
74
| Type | Runtime (us) | Ratio to `double`
75
75
| `float`
76
-
| 8587
77
-
| 1.376
76
+
| 146,976
77
+
| 2.319
78
78
| `double`
79
-
| 6240
79
+
| 63,382
80
80
| 1.000
81
81
| `decimal32`
82
-
| 275,597
83
-
| 44.166
82
+
| 1,797,597
83
+
| 28.361
84
84
| `decimal64`
85
-
| 296,929
86
-
| 47.587
85
+
| 2,799,376
86
+
| 44.167
87
87
| `decimal128`
88
-
| 821,847
89
-
| 131.706
88
+
| 6,478,939
89
+
| 102.220
90
90
| `decimal32_fast`
91
-
| 99,664
92
-
| 15.972
91
+
| 1,070,232
92
+
| 16.885
93
93
| `decimal64_fast`
94
-
| 102,132
95
-
| 16.367
94
+
| 1,111,273
95
+
| 17.533
96
96
| `decimal128_fast`
97
-
| 146,302
98
-
| 23.446
97
+
| 1,118,976
98
+
| 17.654
99
99
|===
100
100
101
101
== Basic Operations
102
102
103
-
The benchmark for these operations generates a random vector containing 2,000,000 elements and does operations `+`, `-`, `*`, `/` between `vec[i] and vec[i + 1]`.
103
+
The benchmark for these operations generates a random vector containing 20,000,000 elements and does operations `+`, `-`, `*`, `/` between `vec[i] and vec[i + 1]`.
104
104
This is repeated 5 times to generate stable results.
105
105
106
106
=== x64 Linux Results
@@ -272,119 +272,119 @@ Run using a Macbook pro with M1 pro chipset running macOS Sonoma 14.4.1 and home
0 commit comments