Skip to content

Commit 54d1477

Browse files
committed
Cap at 4gb, add labels
1 parent b71d0bf commit 54d1477

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

charting/chart.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,17 @@ def compute_trimmed_avg(group):
3434
otel_data = filtered[filtered['base_name'] == 'benchmark-coldstart-otel']
3535
rotel_data = filtered[filtered['base_name'] == 'benchmark-coldstart-rotel']
3636

37+
x = [128, 256, 512, 1024, 2048, 3072, 4096]
38+
labels = ['128 MB', '256 MB', '512 MB', '1 GB', '2 GB', '3 GB', '4 GB']
39+
3740
# Generate the line chart
3841
plt.figure(figsize=(8, 5))
3942
plt.plot(otel_data['memory'], otel_data['difference'], marker='o', label='OpenTelemetry Lambda')
4043
plt.plot(rotel_data['memory'], rotel_data['difference'], marker='o', label='Rotel Lambda')
4144
plt.xlabel('Memory (MB)')
4245
plt.ylabel('Coldstart Time (ms)')
43-
plt.title('Coldstart Time Comparison')
46+
plt.title('Coldstart Comparison')
47+
plt.xticks(x, labels, rotation='vertical')
4448
plt.legend()
4549
plt.grid(True)
4650
plt.show()

scripts/benchmark-coldstart.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
COUNT=${COUNT:-5}
44

5-
MEMORY_SIZES="128 256 512 1024 2048 3072 4096 5120"
5+
MEMORY_SIZES="128 256 512 1024 2048 3072 4096"
66

77
if [ $# -ne 1 ]; then
88
echo "Usage: $0 <output-file>"

0 commit comments

Comments
 (0)