mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-27 13:32:51 -06:00
Use envvars in benchmark for controlling PGF/LPGF. Add readme.
This commit is contained in:
34
testsuite/lpgf/README.md
Normal file
34
testsuite/lpgf/README.md
Normal file
@@ -0,0 +1,34 @@
|
||||
# LPGF testsuite & benchmark
|
||||
|
||||
## Test
|
||||
|
||||
LPGF must be equivalent to PGF in terms of linearisation output.
|
||||
|
||||
Possible exceptions:
|
||||
- No handling of variants (design choice)
|
||||
- Rendering of missing fucntions
|
||||
|
||||
## Benchmark
|
||||
|
||||
### Compilation
|
||||
|
||||
Comparing PGF, LPGF along following criteria:
|
||||
|
||||
- Time
|
||||
- Memory
|
||||
- Binary file size
|
||||
|
||||
### Runtime (linearisation)
|
||||
|
||||
Comparing PGF, PGF2, LPGF along following criteria:
|
||||
|
||||
- Time
|
||||
- Memory
|
||||
|
||||
### Running
|
||||
|
||||
```
|
||||
stack build --test --bench --no-run-tests --no-run-benchmarks && time stack bench
|
||||
stack build --test --bench --no-run-tests --no-run-benchmarks && time PGF_ONLY=1 stack bench
|
||||
stack build --test --bench --no-run-tests --no-run-benchmarks && time LPGF_ONLY=1 stack bench
|
||||
```
|
||||
Reference in New Issue
Block a user