Skip to content

Commit 2161950

Browse files
committed
s390x updates
1 parent 82fb1d9 commit 2161950

File tree

4 files changed

+20
-18
lines changed

4 files changed

+20
-18
lines changed
44.6 KB
Loading
14.2 KB
Loading

doc/int128/i128_benchmarks.adoc

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,16 +59,16 @@ image::i128_graphs/linux/ARM64_relative_performance.png[x64 Relative Performance
5959

6060
=== S390x
6161

62-
[cols="1,1,1,1"]
62+
[cols="1,1,1,1,1"]
6363
|===
64-
| Operation | `__int128` | `int128_t` | `boost::mp::int128_t`
64+
| Operation | `__int128` | `int128_t` | `boost::mp::int128_t` | `absl::int128`
6565

66-
| Comparisons | 7033705 | 6231386 | 10322828
67-
| Addition | 558950 | 689575 | 1673032
68-
| Subtraction | 534362 | 329127 | 2149206
69-
| Multiplication | 911317 | 946090 | 1362947
70-
| Division | 4371582 | 3574992 | 3669927
71-
| Modulo | 4375939 | 3727994 | 4419901
66+
| Comparisons | 14099505 | 12588237 | 21074294 | 13972778
67+
| Addition | 1151086 | 1374984 | 3303931 | 1195725
68+
| Subtraction | 1223119 | 753561 | 4224613 | 1295929
69+
| Multiplication | 1904542 | 2060986 | 3034387 | 1733150
70+
| Division | 8768877 | 7080113 | 7306287 | 7968543
71+
| Modulo | 8661233 | 7180650 | 8801605 | 8175497
7272
|===
7373

7474
////

doc/signed_plots.py

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
'absl::int128': [741269, 92323, 90394, 89558, 1200439, 1293439],
1212
}
1313
"""
14-
14+
"""
1515
# Linux ARM64
1616
data = {
1717
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
@@ -22,14 +22,16 @@
2222
}
2323
2424
"""
25+
2526
# Linux s390x
2627
data = {
2728
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
28-
'`__int128`': [7033705, 558950, 534362, 911317, 4371582, 4375939],
29-
'int128_t': [6231386, 689575, 329127, 946090, 3574992, 3727994],
30-
'boost::mp::int128_t': [10322828, 1673032, 2149206, 1362947, 3669927, 4419901]
29+
'`__int128`': [14099505, 1151086, 1223119, 1904542, 8768877, 8661233],
30+
'int128_t': [12588237, 1374984, 753561, 2060986, 7080113, 7180650],
31+
'boost::mp::int128_t': [21074294, 3303931, 4224613, 3034387, 7306287, 8801605],
32+
'absl::int128': [13972778, 1195725, 1295929, 1733150, 7968543, 8175497],
3133
}
32-
"""
34+
3335
"""
3436
# Linux ppc64le
3537
data = {
@@ -122,7 +124,7 @@ def get_colors_by_rank(row):
122124

123125
ax1.set_xlabel('Operations', fontsize=12)
124126
ax1.set_ylabel('Time (nanoseconds)', fontsize=12)
125-
ax1.set_title('GCC 13 - ARM64 Benchmark Results', fontsize=14, fontweight='bold')
127+
ax1.set_title('GCC 13 - s390x Benchmark Results', fontsize=14, fontweight='bold')
126128
ax1.set_xticks(x)
127129
ax1.set_xticklabels(operations, rotation=45, ha='right')
128130
ax1.legend(loc='upper left')
@@ -151,15 +153,15 @@ def get_colors_by_rank(row):
151153

152154
ax2.set_xlabel('Operations', fontsize=12)
153155
ax2.set_ylabel('Time (nanoseconds) - Log Scale', fontsize=12)
154-
ax2.set_title('GCC 13 - ARM64 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
156+
ax2.set_title('GCC 13 - s390x Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
155157
ax2.set_yscale('log')
156158
ax2.set_xticks(x)
157159
ax2.set_xticklabels(operations, rotation=45, ha='right')
158160
ax2.legend(loc='upper left')
159161
ax2.grid(axis='y', alpha=0.3, which='both')
160162

161163
plt.tight_layout()
162-
plt.savefig('arm64_benchmarks.png', dpi=300, bbox_inches='tight')
164+
plt.savefig('s390x_benchmarks.png', dpi=300, bbox_inches='tight')
163165
plt.show()
164166

165167
# Create a normalized performance chart
@@ -188,7 +190,7 @@ def get_colors_by_rank(row):
188190

189191
ax3.set_xlabel('Operations', fontsize=12)
190192
ax3.set_ylabel('Relative Performance (vs __int128)', fontsize=12)
191-
ax3.set_title('Relative Performance Comparison - ARM64', fontsize=14, fontweight='bold')
193+
ax3.set_title('Relative Performance Comparison - s390x', fontsize=14, fontweight='bold')
192194
ax3.set_xticks(x)
193195
ax3.set_xticklabels(operations, rotation=45, ha='right')
194196
ax3.legend()
@@ -199,7 +201,7 @@ def get_colors_by_rank(row):
199201
fontsize=10, verticalalignment='top', style='italic')
200202

201203
plt.tight_layout()
202-
plt.savefig('arm64_relative_performance.png', dpi=300, bbox_inches='tight')
204+
plt.savefig('s390x_relative_performance.png', dpi=300, bbox_inches='tight')
203205
plt.show()
204206

205207
# Generate summary statistics

0 commit comments

Comments
 (0)