Skip to content

Commit 23be16c

Browse files
committed
Add x64 linux data
1 parent b463a07 commit 23be16c

4 files changed

Lines changed: 31 additions & 2 deletions

File tree

doc/int128/u128_benchmarks.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,24 @@ https://www.boost.org/LICENSE_1_0.txt
1212

1313
=== x86_64
1414

15+
[cols="1,1,1,1"]
16+
|===
17+
| Operation | `std::_Unsigned128` | `uint128_t` | `boost::mp::uint128_t`
18+
19+
| Comparisons | 2068491 | 2416378 | 3191439
20+
| Addition | 383258 | 180522 | 545521
21+
| Subtraction | 208155 | 192633 | 420573
22+
| Multiplication | 291075 | 241174 | 675361
23+
| Division | 3953939 | 4246753 | 4976285
24+
| Modulo | 4042166 | 3953441 | 4478923
25+
|===
26+
27+
////
28+
image::../u128_graphs/linux/x64_benchmarks.png[x64 Benchmark Results, width=100%]
29+
////
30+
31+
image::../u128_graphs/linux/x64_relative_performance.png[x64 Relative Performance, width=100%]
32+
1533
=== x86_32
1634

1735
=== ARM64

doc/plots.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,24 @@
4242
}
4343
"""
4444

45+
"""
4546
# x64 macOS
4647
data = {
4748
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
4849
'unsigned __int128': [688225, 104921, 129150, 120363, 2333812, 2621949],
4950
'uint128_t': [712352, 124992, 102302, 119652, 1981469, 2219481],
5051
'boost::mp::uint128_t': [689146, 137819, 153484, 164100, 2784139, 2736682]
5152
}
53+
"""
54+
55+
# Linux x64
56+
data = {
57+
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
58+
'unsigned __int128': [2068491, 383258, 208155, 291075, 3953939, 4042166],
59+
'uint128_t': [2416378, 180522, 192633, 241174, 4246753, 3953441],
60+
'boost::mp::uint128_t': [3191439, 545521, 420573, 675361, 4976285, 4478923]
61+
}
62+
5263

5364
df = pd.DataFrame(data)
5465

@@ -87,7 +98,7 @@ def get_colors_by_rank(row):
8798

8899
ax1.set_xlabel('Operations', fontsize=12)
89100
ax1.set_ylabel('Time (nanoseconds)', fontsize=12)
90-
ax1.set_title('Clang 15 - x64 Benchmark Results', fontsize=14, fontweight='bold')
101+
ax1.set_title('GCC 14 - x64 Benchmark Results', fontsize=14, fontweight='bold')
91102
ax1.set_xticks(x)
92103
ax1.set_xticklabels(operations, rotation=45, ha='right')
93104
ax1.legend(loc='upper left')
@@ -116,7 +127,7 @@ def get_colors_by_rank(row):
116127

117128
ax2.set_xlabel('Operations', fontsize=12)
118129
ax2.set_ylabel('Time (nanoseconds) - Log Scale', fontsize=12)
119-
ax2.set_title('Clang 15 - x64 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
130+
ax2.set_title('GCC 14 - x64 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
120131
ax2.set_yscale('log')
121132
ax2.set_xticks(x)
122133
ax2.set_xticklabels(operations, rotation=45, ha='right')
368 KB
Loading
197 KB
Loading

0 commit comments

Comments
 (0)