You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Performance should be dependent on infected persons #1115
As we already return early, if there is no infectious person (random event with sum =0) we are already sipping the computational heavy stuff (RNG)
I also couldn't find an improvement, although i was certain i saw one earlier, but to no avail i didn't find it anymore.
The Benchmark was tested for 20 days, at the end of the 20 days almost everyone was infected(inf_state = 0, sum = 7234 at the end (so at least 85% infected)
Before benchmark:
---------------------------------------------------------------------------
Benchmark Time CPU Iterations
---------------------------------------------------------------------------
abm_benchmark/abm_benchmark_50k 2137 ms 2134 ms 1
abm_benchmark/abm_benchmark_100k 4424 ms 4419 ms 1
Benchmark with early return for interaction (no interaction at all):
---------------------------------------------------------------------------
Benchmark Time CPU Iterations
---------------------------------------------------------------------------
abm_benchmark/abm_benchmark_50k 1482 ms 1481 ms 1
abm_benchmark/abm_benchmark_100k 3334 ms 3331 ms 1
Benchmark with no infectious persons and no early return:
---------------------------------------------------------------------------
Benchmark Time CPU Iterations
---------------------------------------------------------------------------
abm_benchmark/abm_benchmark_50k 1545 ms 1545 ms 1
abm_benchmark/abm_benchmark_100k 3323 ms 3323 ms 1
Activity
xsaschako commentedon Aug 22, 2024
On paper branch: when caching exposure rate flag location as infecitous.
On main: probablysame
xsaschako commentedon Aug 22, 2024
first tests on main show a 20% performance gain
xsaschako commentedon May 8, 2025
As we already return early, if there is no infectious person (random event with sum =0) we are already sipping the computational heavy stuff (RNG)
I also couldn't find an improvement, although i was certain i saw one earlier, but to no avail i didn't find it anymore.
The Benchmark was tested for 20 days, at the end of the 20 days almost everyone was infected(inf_state = 0, sum = 7234 at the end (so at least 85% infected)
Before benchmark:
Benchmark with early return for interaction (no interaction at all):
Benchmark with no infectious persons and no early return:
xsaschako commentedon May 16, 2025
I tested it again, it dosnt make a difference