Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Informatik 8
CoPaR
Commits
f77957a9
Commit
f77957a9
authored
Mar 21, 2019
by
Hans-Peter Deifel
Browse files
bench: Add benchmark for hex parser
parent
597e0def
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
bench/Copar/Parser/BenchLexer.hs
View file @
f77957a9
...
...
@@ -16,6 +16,7 @@ benchmarks = bgroup "Copar.Parser.Lexer"
[
benchColon
,
benchDecimal
,
benchFloat
,
benchHex
,
benchName
,
benchWhitespace
]
...
...
@@ -40,6 +41,12 @@ benchFloat = bgroup "float"
,
benchp
@
Double
"signed"
(
L
.
signed
L
.
float
)
"2.87182364"
]
benchHex
::
Benchmark
benchHex
=
bgroup
"hex"
[
benchp
@
Int
"single"
L
.
hex
"0x1"
,
benchp
@
Int
"many"
L
.
hex
"0x123456789ABCDEF"
]
benchName
::
Benchmark
benchName
=
bgroup
"name"
[
benchp
"one letter"
L
.
name
"a"
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment