Skip to content

Commit

Permalink
Update integration benchmarks
Browse files Browse the repository at this point in the history
Added benchmarking results
  • Loading branch information
tgross35 committed Dec 31, 2022
1 parent c292de9 commit 5ef91fb
Show file tree
Hide file tree
Showing 9 changed files with 780 additions and 161 deletions.
9 changes: 8 additions & 1 deletion benches/logbench.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import platform
import subprocess as sp
import sys
import time
from datetime import datetime
from inspect import cleandoc
from pathlib import Path
Expand Down Expand Up @@ -56,12 +57,13 @@ def get_cpu_info() -> str:


def main():
start_time = time.time()
dtime = get_dtime()
describe = git_describe()
fname, fpath = get_fpath(dtime, describe)
version = rustc_version()
cpu_info = get_cpu_info()
cmd = ["cargo", "bench"]
cmd = ["cargo", "bench", "--features", "benchmarking"]
cmd += sys.argv[1:]

header_str = (
Expand Down Expand Up @@ -93,6 +95,11 @@ def main():
print("\nCommand did not complete successfully")
exit(p.returncode)

end_time = time.time()
elapsed_time = end_time - start_time
time_str = f"\nTotal execution time: {time.strftime('%H:%M:%S', time.gmtime(elapsed_time))}"
output += time_str
print(time_str)
print("\nWriting file...", end="")

with open(fpath, "w") as f:
Expand Down
Loading

0 comments on commit 5ef91fb

Please sign in to comment.