-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement README with full docs, TIMEIT functionality, full performan…
…ce benchmark (#11) Also, a jupyter notebook to plot the timing results.
- Loading branch information
Showing
17 changed files
with
868 additions
and
63 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# bash script to run all the benchmarks | ||
|
||
TIMINGS_LOGS_DIR="timings" | ||
|
||
|
||
# simulator 0 | ||
export TIMEIT=1 | ||
export TIMEIT_CYCLES=100 | ||
export TIMEIT_LOGFILE="${TIMINGS_LOGS_DIR}/timings_s0.txt" | ||
|
||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n 10 -s0 | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n 100 -s0 | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n 1000 -s0 | ||
export TIMEIT_CYCLES=10 | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n 100000 -s0 | ||
export TIMEIT_CYCLES=4 | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n 1000000 -s0 | ||
export TIMEIT_CYCLES=2 | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n 10000000 -s0 # <-- THIS TAKES **A LOT** (~30 mins on Macbook Pro 2019) | ||
|
||
|
||
# simulators 1, 2, 3, 4 | ||
export TIMEIT_CYCLES=1000 | ||
|
||
num_monte_carlo_samples="10 100 1000 10000 100000" #manca 100000 | ||
simulator_ids="1 2 3 4 5" | ||
|
||
for simulator_id in $simulator_ids; do | ||
for num_monte_carlo_sample in $num_monte_carlo_samples; do | ||
export TIMEIT_LOGFILE="${TIMINGS_LOGS_DIR}/timings_s${simulator_id}.txt"; | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n ${num_monte_carlo_sample} -s${simulator_id}; | ||
done | ||
done | ||
|
||
# run the largest MC simulations with reduced TIMEIT_CYCLES | ||
export TIMEIT_CYCLES=50 | ||
|
||
num_monte_carlo_samples="1000000" | ||
simulator_ids="1 2 3 4 5" | ||
|
||
for simulator_id in $simulator_ids; do | ||
for num_monte_carlo_sample in $num_monte_carlo_samples; do | ||
export TIMEIT_LOGFILE="${TIMINGS_LOGS_DIR}/timings_s${simulator_id}.txt"; | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n ${num_monte_carlo_sample} -s${simulator_id}; | ||
done | ||
done | ||
|
||
# run the largest MC simulations with reduced TIMEIT_CYCLES | ||
export TIMEIT_CYCLES=5 | ||
|
||
num_monte_carlo_samples="10000000" | ||
simulator_ids="1 2 3 4 5" | ||
|
||
for simulator_id in $simulator_ids; do | ||
for num_monte_carlo_sample in $num_monte_carlo_samples; do | ||
export TIMEIT_LOGFILE="${TIMINGS_LOGS_DIR}/timings_s${simulator_id}.txt"; | ||
gethurricaneloss 10 2 0.001 30 1 0.000001 -n ${num_monte_carlo_sample} -s${simulator_id}; | ||
done | ||
done |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,6 @@ | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10.000000 100 0.000914 50.087758 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100.000000 100 0.010028 49.988582 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000.000000 100 0.101372 49.983956 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000.000000 100 1.040224 49.992674 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100000.000000 10 10.038142 49.980640 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000000.000000 4 105.049747 50.000562 |
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,7 @@ | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10.000000 1000 0.000013 49.966121 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100.000000 1000 0.000133 50.037439 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000.000000 1000 0.001401 49.991665 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000.000000 1000 0.014170 50.000415 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100000.000000 1000 0.144798 49.999268 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000000.000000 50 1.464731 50.000486 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000000.000000 5 14.800176 50.001481 |
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,7 @@ | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10.000000 1000 0.000042 49.797800 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100.000000 1000 0.000065 50.027264 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000.000000 1000 0.000302 50.002490 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000.000000 1000 0.002653 50.000720 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100000.000000 1000 0.029597 49.999877 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000000.000000 50 0.273513 49.998960 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000000.000000 5 2.935461 50.002490 |
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,7 @@ | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10.000000 1000 0.000014 50.119241 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100.000000 1000 0.000139 49.950395 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000.000000 1000 0.001394 49.983407 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000.000000 1000 0.014457 50.006514 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100000.000000 1000 0.150629 49.999678 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000000.000000 50 1.609194 50.000586 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000000.000000 5 16.547855 50.000416 |
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,7 @@ | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10.000000 1000 0.000040 49.928014 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100.000000 1000 0.000166 49.999524 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000.000000 1000 0.001432 49.987668 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000.000000 1000 0.014547 49.999203 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100000.000000 1000 0.150475 49.998460 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000000.000000 50 1.632011 49.999781 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000000.000000 5 16.701602 49.999752 |
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,7 @@ | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10.000000 1000 0.000041 49.950534 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100.000000 1000 0.000063 49.969032 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000.000000 1000 0.000284 50.000781 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000.000000 1000 0.002494 49.997507 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 100000.000000 1000 0.026746 50.000624 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 1000000.000000 50 0.296471 50.002018 | ||
10.000000 0.693147 0.001000 30.000000 0.000000 0.000001 10000000.000000 5 3.050854 49.999555 |
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
Oops, something went wrong.