mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-04 00:32:51 -06:00
37 lines
723 B
Markdown
37 lines
723 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
|
|
|
|
```
|
|
stack build --test --bench --no-run-tests --no-run-benchmarks
|
|
stack bench --benchmark-arguments "+RTS -T -RTS"
|
|
ONLY=PGF stack bench --benchmark-arguments "+RTS -T -RTS"
|
|
ONLY=PGF2 stack bench --benchmark-arguments "+RTS -T -RTS"
|
|
ONLY=LPGF stack bench --benchmark-arguments "+RTS -T -RTS"
|
|
```
|