Added tests and benchmarks
This commit is contained in:
parent
dd3f3280a0
commit
cdcb158623
10 changed files with 330 additions and 29 deletions
11
README.md
11
README.md
|
@ -1,3 +1,12 @@
|
|||
# router
|
||||
|
||||
Radix tree router.
|
||||
HTTP router based on radix trees.
|
||||
|
||||
## Benchmarks
|
||||
|
||||
Loading and requesting every single route in [github.txt](testdata/github.txt):
|
||||
|
||||
```
|
||||
BenchmarkLookup-12 50715 23207 ns/op 11649 B/op 204 allocs/op
|
||||
BenchmarkLookupNoAlloc-12 148033 7993 ns/op 0 B/op 0 allocs/op
|
||||
```
|
Loading…
Add table
Add a link
Reference in a new issue