Skip to content

Commit

Permalink
perf
Browse files Browse the repository at this point in the history
  • Loading branch information
waveywaves committed Mar 29, 2024
1 parent 12998c5 commit d5af5cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions hack/e2e/perf/viz/generate_cold_start_graph.py
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
import matplotlib.pyplot as plt

data_file_prefix = 'cold-start-perf-data-'

# Read cold start performance time from 'cold-start-main.txt'
with open('cold-start-perf-data-main.txt', 'r') as file:
with open(data_file_prefix+'main.txt', 'r') as file:
cold_start_main = int(file.read().strip())

# Read cold start performance time from 'cold-start-PR.txt'
with open('cold-start-perf-data-PR.txt', 'r') as file:
with open(data_file_prefix+'PR.txt', 'r') as file:
cold_start_pr = int(file.read().strip())

# Branch names
Expand Down
2 changes: 1 addition & 1 deletion hack/e2e/perf/viz/generate_n_simul_graph.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import matplotlib.pyplot as plt
import json

data_file_prefix = 'perf-data-'
data_file_prefix = 'n-simul-perf-data-'

# Load the data from 'perf-data-PR.json'
with open(data_file_prefix+'PR.json', 'r') as file:
Expand Down

0 comments on commit d5af5cc

Please sign in to comment.