Added tests and benchmarks

This commit is contained in:
Eduard Urbach 2023-07-09 17:46:17 +02:00
parent dd3f3280a0
commit cdcb158623
Signed by: eduard
GPG key ID: 49226B848C78F6C8
10 changed files with 330 additions and 29 deletions

View file

@ -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
```