Skip to content

lexers: Add benchmark for lexers.Get#713

Closed
bep wants to merge 1 commit intoalecthomas:masterfrom
bep:bench/lexersget
Closed

lexers: Add benchmark for lexers.Get#713
bep wants to merge 1 commit intoalecthomas:masterfrom
bep:bench/lexersget

Conversation

@bep
Copy link
Contributor

@bep bep commented Nov 24, 2022

BenchmarkLexersGet/Known-10             112448803            10.57 ns/op           0 B/op           0 allocs/op
BenchmarkLexersGet/Unknown-10                286       4160740 ns/op           0 B/op           0 allocs/op

```
BenchmarkLexersGet/Known-10             112448803            10.57 ns/op           0 B/op           0 allocs/op
BenchmarkLexersGet/Unknown-10                286       4160740 ns/op           0 B/op           0 allocs/op
```
@walles
Copy link
Contributor

walles commented Oct 16, 2023

The benchmark shows 4ms for the unknown case.

@bep, how much of a problem is a 4ms delay in your use case?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants