Skip to content

Commit e8a4c6b

Browse files
committed
Add ppc64le data
1 parent a9afbd1 commit e8a4c6b

4 files changed

Lines changed: 35 additions & 4 deletions

File tree

doc/int128/u128_benchmarks.adoc

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,27 @@ image::../u128_graphs/linux/s390x_benchmarks.png[s390x Benchmark Results, width=
7777

7878
image::../u128_graphs/linux/s390x_relative_performance.png[s390x Relative Performance, width=100%]
7979

80+
=== PPC64LE
81+
82+
[cols="1,1,1,1"]
83+
|===
84+
| Operation | `std::_Unsigned128` | `uint128_t` | `boost::mp::uint128_t`
85+
86+
| Comparisons | 5242604 | 4450958 | 5704848
87+
| Addition | 221776 | 193063 | 847504
88+
| Subtraction | 222894 | 175259 | 786659
89+
| Multiplication | 194494 | 192929 | 795187
90+
| Division | 4821119 | 4896360 | 5344637
91+
| Modulo | 4955570 | 4273487 | 5407877
92+
|===
93+
94+
////
95+
image::../u128_graphs/linux/ppc64le_benchmarks.png[ppc64le Benchmark Results, width=100%]
96+
////
97+
98+
image::../u128_graphs/linux/ppc64le_relative_performance.png[ppc64le Relative Performance, width=100%]
99+
100+
80101
=== x86_32
81102

82103
NOTE: This platform has no hardware type so we compare relative to `boost::mp::uint128_t`

doc/plots.py

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,23 @@
7070
}
7171
"""
7272

73+
"""
7374
# Linux S390x
7475
data = {
7576
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
7677
'unsigned __int128': [14415854, 1232397, 1239808, 1928533, 8102813, 9072599],
7778
'uint128_t': [12658246, 1423451, 775766, 2600663, 5759377, 6648180],
7879
'boost::mp::uint128_t': [16561079, 2909066, 2744664, 2384775, 7828137, 9172574]
7980
}
81+
"""
82+
83+
# Linux ppc64le
84+
data = {
85+
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
86+
'unsigned __int128': [5242604, 221776, 222894, 194494, 4821119, 4955570],
87+
'uint128_t': [4450958, 193063, 175259, 192929, 4896360, 4273487],
88+
'boost::mp::uint128_t': [5704848, 847504, 786659, 795187, 5344637, 5407877]
89+
}
8090

8191
df = pd.DataFrame(data)
8292

@@ -115,7 +125,7 @@ def get_colors_by_rank(row):
115125

116126
ax1.set_xlabel('Operations', fontsize=12)
117127
ax1.set_ylabel('Time (nanoseconds)', fontsize=12)
118-
ax1.set_title('GCC 13 - s390x Benchmark Results', fontsize=14, fontweight='bold')
128+
ax1.set_title('GCC 14 - ppc64le Benchmark Results', fontsize=14, fontweight='bold')
119129
ax1.set_xticks(x)
120130
ax1.set_xticklabels(operations, rotation=45, ha='right')
121131
ax1.legend(loc='upper left')
@@ -144,15 +154,15 @@ def get_colors_by_rank(row):
144154

145155
ax2.set_xlabel('Operations', fontsize=12)
146156
ax2.set_ylabel('Time (nanoseconds) - Log Scale', fontsize=12)
147-
ax2.set_title('GCC 13 - s390x Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
157+
ax2.set_title('GCC 14 - ppc64le Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
148158
ax2.set_yscale('log')
149159
ax2.set_xticks(x)
150160
ax2.set_xticklabels(operations, rotation=45, ha='right')
151161
ax2.legend(loc='upper left')
152162
ax2.grid(axis='y', alpha=0.3, which='both')
153163

154164
plt.tight_layout()
155-
plt.savefig('s390x_benchmarks.png', dpi=300, bbox_inches='tight')
165+
plt.savefig('ppc64le_benchmarks.png', dpi=300, bbox_inches='tight')
156166
plt.show()
157167

158168
# Create a normalized performance chart
@@ -192,7 +202,7 @@ def get_colors_by_rank(row):
192202
fontsize=10, verticalalignment='top', style='italic')
193203

194204
plt.tight_layout()
195-
plt.savefig('s390x_relative_performance.png', dpi=300, bbox_inches='tight')
205+
plt.savefig('ppc64le_relative_performance.png', dpi=300, bbox_inches='tight')
196206
plt.show()
197207

198208
# Generate summary statistics
371 KB
Loading
203 KB
Loading

0 commit comments

Comments
 (0)