Use envvars in benchmark for controlling PGF/LPGF. Add readme.

This commit is contained in:
John J. Camilleri
2021-02-17 11:44:00 +01:00
parent 6a7ead0f84
commit b4fce5db59
2 changed files with 53 additions and 15 deletions

34
testsuite/lpgf/README.md Normal file
View 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
```