|
44 | 44 | lang_labels = ["C++", "C++", "Rust", "C", "C++"] |
45 | 45 | for i, bar in enumerate(bars): |
46 | 46 | yval = bar.get_height() |
47 | | - label = f'{yval} MB/s ⭐' if libraries_with[i] == 'simdjson' else f'{yval} MB/s' |
| 47 | + label = f'{yval} MB/s ' if libraries_with[i] == 'simdjson' else f'{yval} MB/s' |
48 | 48 | plt.text(bar.get_x() + bar.get_width()/2, yval + 50, label, |
49 | 49 | ha='center', va='bottom', fontsize=12) |
50 | | - plt.text(bar.get_x() + bar.get_width()/2, yval + 150, lang_labels[i], |
| 50 | + plt.text(bar.get_x() + bar.get_width()/2, yval + 180, lang_labels[i], |
51 | 51 | ha='center', va='bottom', fontsize=12, color='black', fontweight='bold', style='italic') |
52 | 52 |
|
53 | 53 | # Highlight simdjson |
|
78 | 78 | lang_labels = ["C++", "C", "Rust", "C++", "C++"] |
79 | 79 | for i, bar in enumerate(bars): |
80 | 80 | yval = bar.get_height() |
81 | | - label = f'{yval} MB/s ⭐' if libraries_sorted[i] == 'simdjson' else f'{yval} MB/s' |
| 81 | + label = f'{yval} MB/s ' if libraries_sorted[i] == 'simdjson' else f'{yval} MB/s' |
82 | 82 | plt.text(bar.get_x() + bar.get_width()/2, yval + 50, label, |
83 | 83 | ha='center', va='bottom', fontsize=12) |
84 | 84 | plt.text(bar.get_x() + bar.get_width()/2, yval + 150, lang_labels[i], |
|
0 commit comments