Skip to content

Commit

Permalink
ADD: measure time taken to run argnorm on example inputs in integrati…
Browse files Browse the repository at this point in the history
…on_tests/run_argnorm.py (#91)
  • Loading branch information
Vedanth-Ramji authored Feb 25, 2025
1 parent d1afb3a commit 8982160
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion integration_tests/run_argnorm.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import subprocess
import pandas as pd
import os
import time

os.makedirs('integration_tests/outputs/raw', exist_ok=True)
os.makedirs('integration_tests/outputs/hamronized', exist_ok=True)
Expand All @@ -18,8 +19,11 @@ def run_cli_test(tool, file, folder, db=None):

if tool in ['abricate', 'groot']:
command += ['--db', db]


start = time.time()
subprocess.check_call(command)
end = time.time()
print(f'{tool} {file} {folder} : {end-start:.2f}s')

output = pd.read_csv(f'integration_tests/outputs/{folder}/{file}', sep='\t')
golden_file = pd.read_csv(f'outputs/{folder}/{file}', sep='\t')
Expand Down

0 comments on commit 8982160

Please sign in to comment.