https://github.com/detailyang/fasturl-go
fasturl-go is a yet another url parser but zero allocted which is more faster then net/url
https://github.com/detailyang/fasturl-go
url url-parser
Last synced: 5 months ago
JSON representation
fasturl-go is a yet another url parser but zero allocted which is more faster then net/url
- Host: GitHub
- URL: https://github.com/detailyang/fasturl-go
- Owner: detailyang
- Created: 2019-08-26T14:15:57.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2019-10-07T06:48:44.000Z (over 6 years ago)
- Last Synced: 2024-06-20T11:14:59.870Z (about 2 years ago)
- Topics: url, url-parser
- Language: Go
- Homepage:
- Size: 77.1 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
fasturl-go
fasturl-go is a yet another url parser but zero allocted which is more faster then net/url
````bash
go test -v -benchmem -run="^$" github.com/detailyang/fasturl-go/fasturl -bench Benchmark
goos: darwin
goarch: amd64
pkg: github.com/detailyang/fasturl-go/fasturl
BenchmarkFastURLParseCase1-8 5639812 190 ns/op 0 B/op 0 allocs/op
BenchmarkNetURLParseCase1-8 1459245 824 ns/op 352 B/op 7 allocs/op
BenchmarkFastURLParseCase2-8 3414703 364 ns/op 0 B/op 0 allocs/op
BenchmarkNetURLParseCase2-8 784420 1461 ns/op 528 B/op 8 allocs/op
BenchmarkQuery-8 6587886 170 ns/op 0 B/op 0 allocs/op
PASS
ok github.com/detailyang/fasturl-go/fasturl 7.405s
````