Skip to content

fasturl-go is a yet another url parser but zero allocted which is more faster then net/url

Notifications You must be signed in to change notification settings

detailyang/fasturl-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fasturl-go

fasturl-go is a yet another url parser but zero allocted which is more faster then net/url

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

About

fasturl-go is a yet another url parser but zero allocted which is more faster then net/url

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published