bitburner-official / bitburner-src

Bitburner source code.
Other
843 stars 273 forks source link

JEST: Decrease bladeburner random test count #1648

Closed cmfrydos closed 2 months ago

cmfrydos commented 2 months ago

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.