|
60 | 60 | 'boost::mp::uint128_t': [3191439, 545521, 420573, 675361, 4976285, 4478923] |
61 | 61 | } |
62 | 62 | """ |
63 | | - |
| 63 | +""" |
64 | 64 | # Linux ARM64 |
65 | 65 | data = { |
66 | 66 | 'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'], |
67 | 67 | 'unsigned __int128': [3424403, 123659, 171721, 329287, 2044821, 2176318], |
68 | 68 | 'uint128_t': [2062167, 133084, 99453, 283443, 1825020, 1897933], |
69 | 69 | 'boost::mp::uint128_t': [5026689, 587373, 330052, 972009, 2190856, 2227961] |
70 | 70 | } |
| 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 | +} |
71 | 80 |
|
72 | 81 | df = pd.DataFrame(data) |
73 | 82 |
|
@@ -106,7 +115,7 @@ def get_colors_by_rank(row): |
106 | 115 |
|
107 | 116 | ax1.set_xlabel('Operations', fontsize=12) |
108 | 117 | 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') |
110 | 119 | ax1.set_xticks(x) |
111 | 120 | ax1.set_xticklabels(operations, rotation=45, ha='right') |
112 | 121 | ax1.legend(loc='upper left') |
@@ -135,15 +144,15 @@ def get_colors_by_rank(row): |
135 | 144 |
|
136 | 145 | ax2.set_xlabel('Operations', fontsize=12) |
137 | 146 | 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') |
139 | 148 | ax2.set_yscale('log') |
140 | 149 | ax2.set_xticks(x) |
141 | 150 | ax2.set_xticklabels(operations, rotation=45, ha='right') |
142 | 151 | ax2.legend(loc='upper left') |
143 | 152 | ax2.grid(axis='y', alpha=0.3, which='both') |
144 | 153 |
|
145 | 154 | 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') |
147 | 156 | plt.show() |
148 | 157 |
|
149 | 158 | # Create a normalized performance chart |
@@ -183,7 +192,7 @@ def get_colors_by_rank(row): |
183 | 192 | fontsize=10, verticalalignment='top', style='italic') |
184 | 193 |
|
185 | 194 | 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') |
187 | 196 | plt.show() |
188 | 197 |
|
189 | 198 | # Generate summary statistics |
|
0 commit comments