Skip to content

Commit

Permalink
very simple benchmark
Browse files Browse the repository at this point in the history
  • Loading branch information
ojdf committed Jun 14, 2024
1 parent a606782 commit 4ed09c4
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/benchmark.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import fast
import time

t0 = time.perf_counter()
sim = fast.Fast("test_params.py")
t1 = time.perf_counter()
sim.run()
t2 = time.perf_counter()

print("FAST Benchmark using test_params.py:")
print(f"Initialisation time: {t1-t0} s")
print(f"Iteration time: {t2-t1} s")
print(f"Total time: {t2-t0} s")

0 comments on commit 4ed09c4

Please sign in to comment.