Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thesmartnik/geoip-lookup-benchmark
Benchmark various geoip ruby gems
https://github.com/thesmartnik/geoip-lookup-benchmark
Last synced: about 1 month ago
JSON representation
Benchmark various geoip ruby gems
- Host: GitHub
- URL: https://github.com/thesmartnik/geoip-lookup-benchmark
- Owner: TheSmartnik
- Created: 2015-11-15T18:47:21.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-15T20:16:47.000Z (about 9 years ago)
- Last Synced: 2024-10-13T21:10:49.170Z (about 1 month ago)
- Language: Ruby
- Size: 0 Bytes
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Geoip-Lookup-Benchmark
This repository sole purpose is to show difference in performance and interface,
between ruby gems for Geoip Lookup.Benchmark test was done with [benchmark-ips](https://github.com/evanphx/benchmark-ips)
##Geoip Gems
> List of gems was taken from [maxmind site](http://dev.maxmind.com/geoip/geoip2/downloadable)* [maxminddb](https://github.com/yhirose/maxminddb)
* [geoip2_compat](https://github.com/dbussink/geoip2_compat)
* [hive_geoip2](https://github.com/desuwa/hive_geoip2)
* [maxmind_geoip2](https://github.com/da4nik/geoip2)## Test result
> IP version doesn't impact performance> It was apparent, that maxminddb would be the slowest.
> Howwever, it has the best API, IMO.```
Calculating -------------------------------------
maxminddb 146.000 i/100ms
geoip2_compat 1.158k i/100ms
hive_geoip2 914.000 i/100ms
maxmind_geoip2 997.000 i/100ms
-------------------------------------------------
maxminddb 956.980 (± 4.0%) i/s - 4.818k
geoip2_compat 12.215k (±12.4%) i/s - 60.216k
hive_geoip2 9.264k (± 1.8%) i/s - 46.614k
maxmind_geoip2 10.248k (± 3.5%) i/s - 51.844kComparison:
geoip2_compat: 12215.1 i/s
maxmind_geoip2: 10248.1 i/s - 1.19x slower
hive_geoip2: 9263.6 i/s - 1.32x slower
maxminddb: 957.0 i/s - 12.76x slower
```