Skip to content
forked from google/btree

Code-generated version of google/btree

License

Notifications You must be signed in to change notification settings

Rikanishu/btree

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a fork of google btree library with codegenerated tree versions for primitives.

The fork supports 7 types - i32, i64, ui32, ui64, f32, f64, str. You can also add your own, it uses genny to generate code.

Benchmarks

Benchmarks were executed on macOS 10.13, 2,2 GHz Intel Core i7.

Data for tests: GeoLite2 free database (688196 leafs).

Original version with interfaces:

goos: darwin
goarch: amd64
pkg: geoip
BenchmarkFindAvail-8   	      20	  80365754 ns/op	 2806195 B/op	  175387 allocs/op
PASS
ok  	geoip	4.561s

Code-generated version with uint32:

goos: darwin
goarch: amd64
pkg: geoip
BenchmarkFindAvail-8   	      30	  55911166 ns/op	       2 B/op	       0 allocs/op
PASS
ok  	geoip	4.232s

About

Code-generated version of google/btree

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 99.7%
  • Shell 0.3%