11import matplotlib .pyplot as plt
22import numpy as np
33import pandas as pd
4-
4+ """
55# Linux x64
66data = {
77 'Operation': ['Comparisons', 'Addition', 'Subtraction', 'Multiplication', 'Division', 'Modulo'],
1010 'boost::mp::int128_t': [2210502, 283528, 668953, 312723, 1320695, 1287093],
1111 'absl::int128': [741269, 92323, 90394, 89558, 1200439, 1293439],
1212}
13-
1413"""
14+
1515# Linux ARM64
1616data = {
1717 'Operation' : ['Comparisons' , 'Addition' , 'Subtraction' , 'Multiplication' , 'Division' , 'Modulo' ],
18- '`__int128`': [3524205, 109691, 195129, 286623, 2350225, 2345191],
19- 'int128_t': [2191692, 126544, 196092, 192214, 2163053, 2167260],
20- 'boost::mp::int128_t': [5559916, 553814, 1024231, 924637, 2718340, 2380277]
18+ '`__int128`' : [3495621 , 191514 , 131380 , 236071 , 2412757 , 2501357 ],
19+ 'int128_t' : [2279914 , 133319 , 193984 , 234594 , 2434752 , 2171828 ],
20+ 'boost::mp::int128_t' : [5910287 , 566860 , 1066509 , 864526 , 2508755 , 2571959 ],
21+ 'absl::int128' : [3749448 , 164848 , 193467 , 237676 , 2484139 , 2158203 ]
2122}
22- """
23+
2324"""
2425# Linux s390x
2526data = {
@@ -121,7 +122,7 @@ def get_colors_by_rank(row):
121122
122123ax1 .set_xlabel ('Operations' , fontsize = 12 )
123124ax1 .set_ylabel ('Time (nanoseconds)' , fontsize = 12 )
124- ax1 .set_title ('GCC 14 - x64 Benchmark Results' , fontsize = 14 , fontweight = 'bold' )
125+ ax1 .set_title ('GCC 13 - ARM64 Benchmark Results' , fontsize = 14 , fontweight = 'bold' )
125126ax1 .set_xticks (x )
126127ax1 .set_xticklabels (operations , rotation = 45 , ha = 'right' )
127128ax1 .legend (loc = 'upper left' )
@@ -150,15 +151,15 @@ def get_colors_by_rank(row):
150151
151152ax2 .set_xlabel ('Operations' , fontsize = 12 )
152153ax2 .set_ylabel ('Time (nanoseconds) - Log Scale' , fontsize = 12 )
153- ax2 .set_title ('GCC 14 - x64 Benchmark Results (Log Scale)' , fontsize = 14 , fontweight = 'bold' )
154+ ax2 .set_title ('GCC 13 - ARM64 Benchmark Results (Log Scale)' , fontsize = 14 , fontweight = 'bold' )
154155ax2 .set_yscale ('log' )
155156ax2 .set_xticks (x )
156157ax2 .set_xticklabels (operations , rotation = 45 , ha = 'right' )
157158ax2 .legend (loc = 'upper left' )
158159ax2 .grid (axis = 'y' , alpha = 0.3 , which = 'both' )
159160
160161plt .tight_layout ()
161- plt .savefig ('x64_benchmarks .png' , dpi = 300 , bbox_inches = 'tight' )
162+ plt .savefig ('arm64_benchmarks .png' , dpi = 300 , bbox_inches = 'tight' )
162163plt .show ()
163164
164165# Create a normalized performance chart
@@ -187,7 +188,7 @@ def get_colors_by_rank(row):
187188
188189ax3 .set_xlabel ('Operations' , fontsize = 12 )
189190ax3 .set_ylabel ('Relative Performance (vs __int128)' , fontsize = 12 )
190- ax3 .set_title ('Relative Performance Comparison - x64 ' , fontsize = 14 , fontweight = 'bold' )
191+ ax3 .set_title ('Relative Performance Comparison - ARM64 ' , fontsize = 14 , fontweight = 'bold' )
191192ax3 .set_xticks (x )
192193ax3 .set_xticklabels (operations , rotation = 45 , ha = 'right' )
193194ax3 .legend ()
@@ -198,7 +199,7 @@ def get_colors_by_rank(row):
198199 fontsize = 10 , verticalalignment = 'top' , style = 'italic' )
199200
200201plt .tight_layout ()
201- plt .savefig ('x64_relative_performance .png' , dpi = 300 , bbox_inches = 'tight' )
202+ plt .savefig ('arm64_relative_performance .png' , dpi = 300 , bbox_inches = 'tight' )
202203plt .show ()
203204
204205# Generate summary statistics
0 commit comments