Skip to content

Commit 8384b97

Browse files
committed
Add linux ARM32 data
1 parent 2b956a3 commit 8384b97

4 files changed

Lines changed: 32 additions & 6 deletions

File tree

doc/int128/u128_benchmarks.adoc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,24 @@ image::../u128_graphs/linux/x86_relative_performance.png[x86 Relative Performanc
9696

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

99+
[cols="1,1,1"]
100+
|===
101+
| Operation | `uint128_t` | `boost::mp::uint128_t`
102+
103+
| Comparisons | 5286033 | 4538707
104+
| Addition | 454715 | 5543856
105+
| Subtraction | 487190 | 6465126
106+
| Multiplication | 1471479 | 8246098
107+
| Division | 19868087 | 32820805
108+
| Modulo | 20332627 | 27238658
109+
|===
110+
111+
////
112+
image::../u128_graphs/linux/ARM32_benchmarks.png[ARM32 Benchmark Results, width=100%]
113+
////
114+
115+
image::../u128_graphs/linux/ARM32_relative_performance.png[ARM32 Relative Performance, width=100%]
116+
99117
== Windows
100118

101119
=== ARM64

doc/plots_32bit.py

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,20 @@
22
import numpy as np
33
import pandas as pd
44

5-
# Linux S390x
5+
"""
6+
# Linux x86_32
67
data = {
78
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
89
'uint128_t': [9000979, 898718, 778881, 1778273, 8496503, 9081442],
910
'boost::mp::uint128_t': [8722814, 9912175, 9773677, 8678420, 18133965, 11257837]
1011
}
12+
"""
13+
# Linux ARM32
14+
data = {
15+
'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
16+
'uint128_t': [5286033, 454715, 487190, 1471479, 19868087, 20332627],
17+
'boost::mp::uint128_t': [4538707, 5543856, 6465126, 8246098, 32820805, 27238658]
18+
}
1119

1220
df = pd.DataFrame(data)
1321

@@ -46,7 +54,7 @@ def get_colors_by_rank(row):
4654

4755
ax1.set_xlabel('Operations', fontsize=12)
4856
ax1.set_ylabel('Time (nanoseconds)', fontsize=12)
49-
ax1.set_title('GCC 14 - x86_32 Benchmark Results', fontsize=14, fontweight='bold')
57+
ax1.set_title('GCC 14 - ARM32 Benchmark Results', fontsize=14, fontweight='bold')
5058
ax1.set_xticks(x)
5159
ax1.set_xticklabels(operations, rotation=45, ha='right')
5260
ax1.legend(loc='upper left')
@@ -75,15 +83,15 @@ def get_colors_by_rank(row):
7583

7684
ax2.set_xlabel('Operations', fontsize=12)
7785
ax2.set_ylabel('Time (nanoseconds) - Log Scale', fontsize=12)
78-
ax2.set_title('GCC 14 - x86_32 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
86+
ax2.set_title('GCC 14 - ARM32 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold')
7987
ax2.set_yscale('log')
8088
ax2.set_xticks(x)
8189
ax2.set_xticklabels(operations, rotation=45, ha='right')
8290
ax2.legend(loc='upper left')
8391
ax2.grid(axis='y', alpha=0.3, which='both')
8492

8593
plt.tight_layout()
86-
plt.savefig('x86_benchmarks.png', dpi=300, bbox_inches='tight')
94+
plt.savefig('ARM32_benchmarks.png', dpi=300, bbox_inches='tight')
8795
plt.show()
8896

8997
# Create a normalized performance chart
@@ -112,7 +120,7 @@ def get_colors_by_rank(row):
112120

113121
ax3.set_xlabel('Operations', fontsize=12)
114122
ax3.set_ylabel('Relative Performance (vs boost::mp::uint128_t)', fontsize=12)
115-
ax3.set_title('Relative Performance Comparison - x86_32', fontsize=14, fontweight='bold')
123+
ax3.set_title('Relative Performance Comparison - ARM3232', fontsize=14, fontweight='bold')
116124
ax3.set_xticks(x)
117125
ax3.set_xticklabels(operations, rotation=45, ha='right')
118126
ax3.legend()
@@ -123,7 +131,7 @@ def get_colors_by_rank(row):
123131
fontsize=10, verticalalignment='top', style='italic')
124132

125133
plt.tight_layout()
126-
plt.savefig('x86_relative_performance.png', dpi=300, bbox_inches='tight')
134+
plt.savefig('ARM32_relative_performance.png', dpi=300, bbox_inches='tight')
127135
plt.show()
128136

129137
# Generate summary statistics
354 KB
Loading
182 KB
Loading

0 commit comments

Comments
 (0)