Skip to content

Commit d88707b

Browse files
committed
update
1 parent df2b457 commit d88707b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cppcon2025/images/generate_perf_charts.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,10 @@
4444
lang_labels = ["C++", "C++", "Rust", "C", "C++"]
4545
for i, bar in enumerate(bars):
4646
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'
4848
plt.text(bar.get_x() + bar.get_width()/2, yval + 50, label,
4949
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],
5151
ha='center', va='bottom', fontsize=12, color='black', fontweight='bold', style='italic')
5252

5353
# Highlight simdjson
@@ -78,7 +78,7 @@
7878
lang_labels = ["C++", "C", "Rust", "C++", "C++"]
7979
for i, bar in enumerate(bars):
8080
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'
8282
plt.text(bar.get_x() + bar.get_width()/2, yval + 50, label,
8383
ha='center', va='bottom', fontsize=12)
8484
plt.text(bar.get_x() + bar.get_width()/2, yval + 150, lang_labels[i],
-121 Bytes
Loading
50 Bytes
Loading

0 commit comments

Comments
 (0)