前回のやつ、multiするの忘れてた

memcachedにlat,lon2つを取得するのとgeohashとかにして一つ取得してデコードするのどっちが早いのか - soh335 memo

Cache::Memcached::Fastでget

                       Rate geohash_pure_decode latlon multi_latlon geohash_xs_decode_30 geohash_xs_decode_10 geohash_xs_decode_20 geohash
geohash_pure_decode  8.13/s                  --   -56%         -74%                 -76%                 -76%                 -76%    -79%
latlon               18.3/s                125%     --         -41%                 -46%                 -46%                 -47%    -53%
multi_latlon         30.8/s                279%    68%           --                  -9%                  -9%                 -10%    -21%
geohash_xs_decode_30 33.8/s                316%    84%          10%                   --                  -1%                  -2%    -13%
geohash_xs_decode_10 34.0/s                318%    86%          10%                   1%                   --                  -1%    -12%
geohash_xs_decode_20 34.3/s                322%    87%          11%                   2%                   1%                   --    -12%
geohash              38.8/s                377%   112%          26%                  15%                  14%                  13%      --

https://gist.github.com/1167387

Cache::Memcached::Fastでset

                       Rate geohash_pure_decode latlon multi_latlon geohash_xs_decode_30 geohash_xs_decode_20 geohash_xs_decode_10
geohash_pure_decode  7.16/s                  --   -57%         -73%                 -76%                 -77%                 -77%
latlon               16.6/s                132%     --         -37%                 -46%                 -46%                 -47%
multi_latlon         26.3/s                267%    59%           --                 -14%                 -15%                 -16%
geohash_xs_decode_30 30.5/s                325%    84%          16%                   --                  -2%                  -3%
geohash_xs_decode_20 31.0/s                333%    87%          18%                   2%                   --                  -1%
geohash_xs_decode_10 31.3/s                337%    89%          19%                   3%                   1%                   --

https://gist.github.com/1167386