22import numpy as np
33import pandas as pd
44
5- # Linux S390x
5+ """
6+ # Linux x86_32
67data = {
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
1220df = pd .DataFrame (data )
1321
@@ -46,7 +54,7 @@ def get_colors_by_rank(row):
4654
4755ax1 .set_xlabel ('Operations' , fontsize = 12 )
4856ax1 .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' )
5058ax1 .set_xticks (x )
5159ax1 .set_xticklabels (operations , rotation = 45 , ha = 'right' )
5260ax1 .legend (loc = 'upper left' )
@@ -75,15 +83,15 @@ def get_colors_by_rank(row):
7583
7684ax2 .set_xlabel ('Operations' , fontsize = 12 )
7785ax2 .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' )
7987ax2 .set_yscale ('log' )
8088ax2 .set_xticks (x )
8189ax2 .set_xticklabels (operations , rotation = 45 , ha = 'right' )
8290ax2 .legend (loc = 'upper left' )
8391ax2 .grid (axis = 'y' , alpha = 0.3 , which = 'both' )
8492
8593plt .tight_layout ()
86- plt .savefig ('x86_benchmarks .png' , dpi = 300 , bbox_inches = 'tight' )
94+ plt .savefig ('ARM32_benchmarks .png' , dpi = 300 , bbox_inches = 'tight' )
8795plt .show ()
8896
8997# Create a normalized performance chart
@@ -112,7 +120,7 @@ def get_colors_by_rank(row):
112120
113121ax3 .set_xlabel ('Operations' , fontsize = 12 )
114122ax3 .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' )
116124ax3 .set_xticks (x )
117125ax3 .set_xticklabels (operations , rotation = 45 , ha = 'right' )
118126ax3 .legend ()
@@ -123,7 +131,7 @@ def get_colors_by_rank(row):
123131 fontsize = 10 , verticalalignment = 'top' , style = 'italic' )
124132
125133plt .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' )
127135plt .show ()
128136
129137# Generate summary statistics
0 commit comments