Skip to content

Commit f722922

Browse files
committed
Add s390x data
1 parent 389ee93 commit f722922

4 files changed

Lines changed: 39 additions & 8 deletions

File tree

doc/int128/u128_benchmarks.adoc

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,6 @@ image::../u128_graphs/linux/x64_benchmarks.png[x64 Benchmark Results, width=100%
3030

3131
image::../u128_graphs/linux/x64_relative_performance.png[x64 Relative Performance, width=100%]
3232

33-
=== x86_32
34-
3533
=== ARM64
3634

3735
[cols="1,1,1,1"]
@@ -52,9 +50,33 @@ image::../u128_graphs/linux/ARM64_benchmarks.png[ARM64 Benchmark Results, width=
5250

5351
image::../u128_graphs/linux/ARM64_relative_performance.png[x64 Relative Performance, width=100%]
5452

53+
=== S390x
54+
55+
[cols="1,1,1,1"]
56+
|===
57+
| Operation | `std::_Unsigned128` | `uint128_t` | `boost::mp::uint128_t`
58+
59+
| Comparisons | 14415854 | 12658246 | 16561079
60+
| Addition | 1232397 | 1423451 | 2909066
61+
| Subtraction | 1239808 | 775766 | 2744664
62+
| Multiplication | 1928533 | 2600663 | 2384775
63+
| Division | 8102813 | 5759377 | 7828137
64+
| Modulo | 9072599 | 6648180 | 9172574
65+
|===
66+
67+
////
68+
image::../u128_graphs/linux/s390x_benchmarks.png[s390x Benchmark Results, width=100%]
69+
////
70+
71+
image::../u128_graphs/linux/s390x_relative_performance.png[s390x Relative Performance, width=100%]
72+
73+
=== x86_32
74+
75+
NOTE: This platform has no hardware type so we compare relative to boost::mp::uint128_t
76+
5577
=== ARM32
5678

57-
=== S390x
79+
NOTE: This platform has no hardware type so we compare relative to boost::mp::uint128_t
5880

5981
== Windows
6082

doc/plots.py

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,23 @@
6060
'boost::mp::uint128_t': [3191439, 545521, 420573, 675361, 4976285, 4478923]
6161
}
6262
"""
63-
63+
"""
6464
# Linux ARM64
6565
data = {
6666
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
6767
'unsigned __int128': [3424403, 123659, 171721, 329287, 2044821, 2176318],
6868
'uint128_t': [2062167, 133084, 99453, 283443, 1825020, 1897933],
6969
'boost::mp::uint128_t': [5026689, 587373, 330052, 972009, 2190856, 2227961]
7070
}
71+
"""
72+
73+
# Linux S390x
74+
data = {
75+
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
76+
'unsigned __int128': [14415854, 1232397, 1239808, 1928533, 8102813, 9072599],
77+
'uint128_t': [12658246, 1423451, 775766, 2600663, 5759377, 6648180],
78+
'boost::mp::uint128_t': [16561079, 2909066, 2744664, 2384775, 7828137, 9172574]
79+
}
7180

7281
df = pd.DataFrame(data)
7382

@@ -106,7 +115,7 @@ def get_colors_by_rank(row):
106115

107116
ax1.set_xlabel('Operations', fontsize=12)
108117
ax1.set_ylabel('Time (nanoseconds)', fontsize=12)
109-
ax1.set_title('GCC 13 - ARM64 Benchmark Results', fontsize=14, fontweight='bold')
118+
ax1.set_title('GCC 13 - s390x Benchmark Results', fontsize=14, fontweight='bold')
110119
ax1.set_xticks(x)
111120
ax1.set_xticklabels(operations, rotation=45, ha='right')
112121
ax1.legend(loc='upper left')
@@ -135,15 +144,15 @@ def get_colors_by_rank(row):
135144

136145
ax2.set_xlabel('Operations', fontsize=12)
137146
ax2.set_ylabel('Time (nanoseconds) - Log Scale', fontsize=12)
138-
ax2.set_title('GCC 13 - ARM64 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
147+
ax2.set_title('GCC 13 - s390x Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
139148
ax2.set_yscale('log')
140149
ax2.set_xticks(x)
141150
ax2.set_xticklabels(operations, rotation=45, ha='right')
142151
ax2.legend(loc='upper left')
143152
ax2.grid(axis='y', alpha=0.3, which='both')
144153

145154
plt.tight_layout()
146-
plt.savefig('ARM64_benchmarks.png', dpi=300, bbox_inches='tight')
155+
plt.savefig('s390x_benchmarks.png', dpi=300, bbox_inches='tight')
147156
plt.show()
148157

149158
# Create a normalized performance chart
@@ -183,7 +192,7 @@ def get_colors_by_rank(row):
183192
fontsize=10, verticalalignment='top', style='italic')
184193

185194
plt.tight_layout()
186-
plt.savefig('ARM64_relative_performance.png', dpi=300, bbox_inches='tight')
195+
plt.savefig('s390x_relative_performance.png', dpi=300, bbox_inches='tight')
187196
plt.show()
188197

189198
# Generate summary statistics
397 KB
Loading
197 KB
Loading

0 commit comments

Comments
 (0)