]> Git — Sourcephile - haskell/symantic-parser.git/blob - HackMe.md
add benchmarks
[haskell/symantic-parser.git] / HackMe.md
1 # Hacking `symantic-parser`
2
3 ## Typing
4 ```bash
5 make repl
6 make parsers/repl
7 make tests/repl
8 make benchmarks/repl
9 ```
10
11 ## Testing
12 ```bash
13 make tests
14 ```
15
16 ### Profiling
17 ```bash
18 make tests/prof
19 make tests/prof t=.Golden.Parsers.G13
20 ```
21
22 ## Benchmarking
23
24 ### Profiling
25
26 #### Time
27 ```bash
28 make benchmarks/prof-time b=Brainfuck/ByteString/hanoi/'*' BENCHMARK_OPTIONS=-n1
29 ```
30 Then open `symantic-parser-benchmakrs.eventlog.json` with [`speedscope`](https://www.speedscope.app).
31
32 #### Heap
33 ```bash
34 make benchmarks/prof-heap b=Brainfuck/ByteString/hanoi/'*' BENCHMARK_OPTIONS=-n1
35 ```
36 Then open `symantic-parser-benchmakrs.eventlog.html`.