-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a5d6887
commit f84c3b0
Showing
4 changed files
with
20 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,26 @@ | ||
#!/usr/bin/env python3 | ||
|
||
import shlex | ||
from pathlib import Path | ||
from typing import Optional | ||
import json | ||
from subprocess import check_output | ||
from subprocess import check_output, run | ||
from collections import Counter | ||
import sys | ||
from time import perf_counter | ||
|
||
from all_scripts import get_all_scripts | ||
from syntax_analysis import parse_shell_script, count_nodes | ||
from project_root import get_project_root | ||
|
||
run(['bash', *sys.argv[1:]]) | ||
time_file = get_project_root() / 'infrastructure' / 'target' / 'runtime_log.csv' | ||
|
||
command = sys.argv[1:] | ||
|
||
start = perf_counter() | ||
run(['bash', *command]) | ||
elapsed = perf_counter() - start | ||
|
||
with time_file.open('a') as file: | ||
print(shlex.join(command), elapsed, sep=',', file=file) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
/benchmarks/log-analysis/scripts/nginx.sh /benchmarks/log-analysis/input/nginx-logs /benchmarks/log-analysis/results/nginx.full,1.5968113659982919 | ||
/benchmarks/log-analysis/scripts/pcaps.sh /benchmarks/log-analysis/input/pcaps /benchmarks/log-analysis/results/pcaps.full,116.00431065500015 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters