|
51 | 51 | 'boost::mp::uint128_t': [689146, 137819, 153484, 164100, 2784139, 2736682] |
52 | 52 | } |
53 | 53 | """ |
54 | | - |
| 54 | +""" |
55 | 55 | # Linux x64 |
56 | 56 | data = { |
57 | 57 | 'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'], |
58 | 58 | 'unsigned __int128': [2068491, 383258, 208155, 291075, 3953939, 4042166], |
59 | 59 | 'uint128_t': [2416378, 180522, 192633, 241174, 4246753, 3953441], |
60 | 60 | 'boost::mp::uint128_t': [3191439, 545521, 420573, 675361, 4976285, 4478923] |
61 | 61 | } |
| 62 | +""" |
62 | 63 |
|
| 64 | +# Linux ARM64 |
| 65 | +data = { |
| 66 | + 'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'], |
| 67 | + 'unsigned __int128': [3424403, 123659, 171721, 329287, 2044821, 2176318], |
| 68 | + 'uint128_t': [2062167, 133084, 99453, 283443, 1825020, 1897933], |
| 69 | + 'boost::mp::uint128_t': [5026689, 587373, 330052, 972009, 2190856, 2227961] |
| 70 | +} |
63 | 71 |
|
64 | 72 | df = pd.DataFrame(data) |
65 | 73 |
|
@@ -98,7 +106,7 @@ def get_colors_by_rank(row): |
98 | 106 |
|
99 | 107 | ax1.set_xlabel('Operations', fontsize=12) |
100 | 108 | ax1.set_ylabel('Time (nanoseconds)', fontsize=12) |
101 | | -ax1.set_title('GCC 14 - x64 Benchmark Results', fontsize=14, fontweight='bold') |
| 109 | +ax1.set_title('GCC 13 - ARM64 Benchmark Results', fontsize=14, fontweight='bold') |
102 | 110 | ax1.set_xticks(x) |
103 | 111 | ax1.set_xticklabels(operations, rotation=45, ha='right') |
104 | 112 | ax1.legend(loc='upper left') |
@@ -127,15 +135,15 @@ def get_colors_by_rank(row): |
127 | 135 |
|
128 | 136 | ax2.set_xlabel('Operations', fontsize=12) |
129 | 137 | ax2.set_ylabel('Time (nanoseconds) - Log Scale', fontsize=12) |
130 | | -ax2.set_title('GCC 14 - x64 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold') |
| 138 | +ax2.set_title('GCC 13 - ARM64 Benchmark Results (Log Scale)', fontsize=14, fontweight='bold') |
131 | 139 | ax2.set_yscale('log') |
132 | 140 | ax2.set_xticks(x) |
133 | 141 | ax2.set_xticklabels(operations, rotation=45, ha='right') |
134 | 142 | ax2.legend(loc='upper left') |
135 | 143 | ax2.grid(axis='y', alpha=0.3, which='both') |
136 | 144 |
|
137 | 145 | plt.tight_layout() |
138 | | -plt.savefig('x64_benchmarks.png', dpi=300, bbox_inches='tight') |
| 146 | +plt.savefig('ARM64_benchmarks.png', dpi=300, bbox_inches='tight') |
139 | 147 | plt.show() |
140 | 148 |
|
141 | 149 | # Create a normalized performance chart |
@@ -175,7 +183,7 @@ def get_colors_by_rank(row): |
175 | 183 | fontsize=10, verticalalignment='top', style='italic') |
176 | 184 |
|
177 | 185 | plt.tight_layout() |
178 | | -plt.savefig('x64_relative_performance.png', dpi=300, bbox_inches='tight') |
| 186 | +plt.savefig('ARM64_relative_performance.png', dpi=300, bbox_inches='tight') |
179 | 187 | plt.show() |
180 | 188 |
|
181 | 189 | # Generate summary statistics |
|
0 commit comments