]> Git — Sourcephile - haskell/symantic-parser.git/commit
TemplateHaskell: why is PprSplice much faster than DumpSplice?
authorJulien Moutinho <julm+symantic-parser@sourcephile.fr>
Thu, 6 May 2021 17:50:03 +0000 (19:50 +0200)
committerJulien Moutinho <julm+symantic-parser@sourcephile.fr>
Sun, 11 Jul 2021 17:43:42 +0000 (19:43 +0200)
commit2ab5a0ba2d9637aeb77775ae99a4755540604bf1
tree231c64b47b4eb5f4d3e10066275291e6837829dd
parent4ae33b960e3c80f980f6efc7ebde81935ca6cb8a
TemplateHaskell: why is PprSplice much faster than DumpSplice?

$ make benchmarks/prof-time b=Brainfuck/ByteString/hanoi/SymanticParser.PprSplice
benchmarking Brainfuck/ByteString/hanoi/SymanticParser.PprSplice
time                 71.19 ms   (69.66 ms .. 72.58 ms)
                     0.999 R²   (0.999 R² .. 1.000 R²)
mean                 71.91 ms   (71.10 ms .. 73.18 ms)
std dev              1.755 ms   (973.5 μs .. 2.766 ms)

$ make benchmarks/prof-time b=Brainfuck/ByteString/hanoi/SymanticParser.DumpSplice
benchmarking Brainfuck/ByteString/hanoi/SymanticParser.DumpSplice
time                 170.5 ms   (169.7 ms .. 171.0 ms)
                     1.000 R²   (1.000 R² .. 1.000 R²)
mean                 169.4 ms   (168.3 ms .. 169.9 ms)
std dev              1.046 ms   (375.5 μs .. 1.650 ms)
variance introduced by outliers: 12% (moderately inflated)
Hacking.md [moved from HackMe.md with 89% similarity]
Makefile
benchmarks/Brainfuck.hs
benchmarks/Main.hs
parsers/Parsers/Brainfuck/SymanticParser/AutoSplice.hs [new file with mode: 0644]
parsers/Parsers/Brainfuck/SymanticParser/DumpSplice.hs [new file with mode: 0644]
parsers/Parsers/Brainfuck/SymanticParser/Grammar.hs [moved from parsers/Parsers/Brainfuck/SymanticParser.hs with 97% similarity]
parsers/Parsers/Brainfuck/SymanticParser/PprSplice.hs [new file with mode: 0644]
symantic-parser.cabal