-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into pickle_tallies
- Loading branch information
Showing
36 changed files
with
18,384 additions
and
1,601 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 |
---|---|---|
|
@@ -7,6 +7,7 @@ dist/* | |
.coverage | ||
.idea/* | ||
*.*.sw* | ||
*.prof | ||
doc/build/* | ||
.coverage | ||
.idea/ | ||
|
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 |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import montepy | ||
|
||
import time | ||
import tracemalloc | ||
|
||
FAIL_THRESHOLD = 30 | ||
|
||
tracemalloc.start() | ||
start = time.time() | ||
|
||
problem = montepy.read_input("benchmark/big_model.imcnp") | ||
|
||
stop = time.time() | ||
|
||
print(f"Took {stop - start} seconds") | ||
print(f"Memory usage report: {tracemalloc.get_traced_memory()}") | ||
|
||
if (stop - start) > FAIL_THRESHOLD: | ||
raise RuntimeError( | ||
f"Benchmark took too long to complete. It must be faster than: {FAIL_THRESHOLD} s." | ||
) |
Oops, something went wrong.