Benchmarks to compare golang geohash implementations
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
results
LICENSE
Makefile
README.md
README.md.j2
benchmarks_test.go
make_benchmarks.py
meta.py
packages.yaml
util_test.go

README.md

geohashbench

Benchmarks to compare golang geohash implementations.

Results

String Encoding

name                        time/op
MmcloughlinEncodeString-4   44.3ns ± 0%
PierrreEncodeString-4        460ns ± 0%
CodeforEncodeString-4        468ns ± 0%
GansiduiEncodeString-4       522ns ± 0%
TomihiltunenEncodeString-4   545ns ± 0%
FanixkEncodeString-4         547ns ± 0%
TidwallEncodeString-4        602ns ± 0%
BroadyEncodeString-4        1.06µs ± 0%

Integer Encoding

name                    time/op
MmcloughlinEncodeInt-4  3.74ns ± 0%
BsmEncodeInt-4          15.0ns ± 0%
EzzkoramEncodeInt-4     34.1ns ± 0%
CorscEncodeInt52-4       363ns ± 0%

String Decoding

name                        time/op
MmcloughlinDecodeString-4   106ns ± 0%
PierrreDecodeString-4       297ns ± 0%
CodeforDecodeString-4       367ns ± 0%
BroadyDecodeString-4        429ns ± 0%
TidwallDecodeString-4       446ns ± 0%
TomihiltunenDecodeString-4  512ns ± 0%
FanixkDecodeString-4        569ns ± 0%

Meta

$ date
Sun Aug  5 21:12:51 PDT 2018
$ go version
go version go1.10.3 darwin/amd64
$ sysctl -n machdep.cpu.brand_string
Intel(R) Core(TM) i7-7567U CPU @ 3.50GHz

Packages Tested