Skip to content

Commit

Permalink
refac: add timing checkpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
brunolnetto committed Aug 3, 2024
1 parent 126d74a commit b590346
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,16 @@ def test_euler(test_sets, euler_sets):
for key, sequence in euler_sets.items()
}

from time import time
from warnings import warn

start = time()
assert euler(setified_test_sets) == setified_euler_sets
warn(f'Time elapsed (recursive-serial): {time() - start}')

start = time()
assert euler_parallel(setified_test_sets) == setified_euler_sets
warn(f'Time elapsed (recursive-parallel): {time() - start}')


def test_euler_keys(sets, euler_sets_keys):
Expand Down

0 comments on commit b590346

Please sign in to comment.