mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-07 18:22:50 -06:00
40 lines
865 B
Markdown
40 lines
865 B
Markdown
# 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
|
|
|
|
Run each command separately so that memory measurements are isolated.
|
|
|
|
```
|
|
stack build --test --bench --no-run-tests --no-run-benchmarks
|
|
stack bench --benchmark-arguments "compile pgf +RTS -T -RTS"
|
|
stack bench --benchmark-arguments "compile lpgf +RTS -T -RTS"
|
|
stack bench --benchmark-arguments "run pgf +RTS -T -RTS"
|
|
stack bench --benchmark-arguments "run pgf2 +RTS -T -RTS"
|
|
stack bench --benchmark-arguments "run lpgf +RTS -T -RTS"
|
|
```
|