https://github.com/megaing/lark-performance-tests
A few scripts for performance checks of lark
https://github.com/megaing/lark-performance-tests
Last synced: about 1 year ago
JSON representation
A few scripts for performance checks of lark
- Host: GitHub
- URL: https://github.com/megaing/lark-performance-tests
- Owner: MegaIng
- Created: 2021-07-27T11:38:14.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-07-27T11:48:04.000Z (almost 5 years ago)
- Last Synced: 2025-01-26T02:32:36.637Z (over 1 year ago)
- Language: Python
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# lark-performance-tests
This is a mess. Was created for lark PR [#949](https://github.com/lark-parser/lark/pull/949).
These scripts made sense to me at the time. Not sure how about now.
In general:
- `performance_tests.py` uses a second implementation of the rule generation to tests a lot of different scenarios on how splitting up the `N` into `a`s and `b`s performs.
- `performance_tests_2.py` varied the actual Thresholds inside of lark to check for the actual effects on the implementation.
- `best_factors.py` just tests which 'factorizations' of `a`s and `b`s gets the best 'factor_sums'.