This is a mess. Was created for lark PR #949.
These scripts made sense to me at the time. Not sure how about now.
In general:
performance_tests.pyuses a second implementation of the rule generation to tests a lot of different scenarios on how splitting up theNintoas andbs performs.performance_tests_2.pyvaried the actual Thresholds inside of lark to check for the actual effects on the implementation.best_factors.pyjust tests which 'factorizations' ofas andbs gets the best 'factor_sums'.