Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CoPaR
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
Operations
Operations
Incidents
Environments
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Software
CoPaR
Commits
f77957a9
Commit
f77957a9
authored
Mar 21, 2019
by
Hans-Peter Deifel
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bench: Add benchmark for hex parser
parent
597e0def
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
bench/Copar/Parser/BenchLexer.hs
bench/Copar/Parser/BenchLexer.hs
+7
-0
No files found.
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
Markdown
is supported
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