More Related Content
Similar to YAPC::Asia (20)
YAPC::Asia
- 32. ●Geo::Hash (http://search.cpan.org/dist/Geo-Hash/)
●ベンチマーク
●隣接するgeohashを求めるadjacentメソッドがある
geohash
Encode
Benchmark: timing 500000 iterations of Geo::Hash encode, Geo::Hash::XS encode...
Geo::Hash encode: 137 wallclock secs (136.95 usr + 0.00 sys = 136.95 CPU) @ 3650.97/s (n=500000)
Geo::Hash::XS encode: -1 wallclock secs ( 0.66 usr + 0.00 sys = 0.66 CPU) @ 757575.76/s (n=500000)
Rate Geo::Hash encode Geo::Hash::XS encode
Geo::Hash encode 3651/s -- -100%
Geo::Hash::XS encode 757576/s 20650% --
Decode
Benchmark: timing 1000000 iterations of Geo::Hash decode, Geo::Hash::XS decode...
Geo::Hash decode: 112 wallclock secs (111.68 usr + 0.03 sys = 111.71 CPU) @ 8951.75/s (n=1000000)
Geo::Hash::XS decode: 2 wallclock secs ( 0.79 usr + 0.00 sys = 0.79 CPU) @ 1265822.78/s (n=1000000)
Rate Geo::Hash decode Geo::Hash::XS decode
Geo::Hash decode 8952/s -- -99%
Geo::Hash::XS decode 1265823/s 14041% --
●Geo::Hash::XS (http://search.cpan.org/dist/Geo-Hash-XS/)