I have decreased the random test frequency of bladeburner->calculateMaxUpgradeCount by 1-0.8^4, which equates to 59.04%. Previously, it ran 10,000,000 tests per session; this has been reduced to 4,096,000. While this is still a significant number of tests, it reduces the overall test time from 30 seconds to 15 seconds at my machine. This is particularly beneficial as this test is by far the most compute-intensive.
I have decreased the random test frequency of
bladeburner->calculateMaxUpgradeCount
by 1-0.8^4, which equates to 59.04%. Previously, it ran 10,000,000 tests per session; this has been reduced to 4,096,000. While this is still a significant number of tests, it reduces the overall test time from 30 seconds to 15 seconds at my machine. This is particularly beneficial as this test is by far the most compute-intensive.