Skip to content

Instantly share code, notes, and snippets.

@Ironholds
Last active August 29, 2015 14:09
Show Gist options
  • Save Ironholds/38ba1e27017e544925df to your computer and use it in GitHub Desktop.
Save Ironholds/38ba1e27017e544925df to your computer and use it in GitHub Desktop.
Benchmark ALL the things!
ips <- mysql_query("SELECT DISTINCT(cuc_ip) FROM cu_changes WHERE cuc_ip IS NOT NULL LIMIT 10000;","enwiki")$cuc_ip
Unit: milliseconds
expr min lq mean median uq max neval
{ test <- c_geo_city(ips) } 50.61829 57.15351 77.02546 60.63893 65.2781 319.1384 100
Unit: seconds
expr min lq mean median uq max neval
{ test <- geo_city(ips) } 1.499703 1.78602 1.935753 1.923845 2.067342 2.564509 100
Unit: milliseconds
expr min lq mean median uq max neval
{ test <- c_geo_region(ips) } 55.51803 61.36651 99.45455 64.61665 113.9436 308.8039 100
Unit: seconds
expr min lq mean median uq max neval
{ test <- geo_region(ips) } 1.829387 2.067188 2.220059 2.181581 2.379472 2.81266 100
Unit: milliseconds
expr min lq mean median uq max neval
{ test <- c_geo_tz(ips) } 37.26041 38.46032 39.63078 39.14693 40.331 46.31718 100
Unit: seconds
expr min lq mean median uq max neval
{ test <- geo_tz(ips) } 1.196125 1.255465 1.415256 1.341104 1.493516 2.411343 100
Unit: milliseconds
expr min lq mean median uq max neval
{ test <- c_geo_netspeed(ips) } 10.11029 10.69904 13.31957 10.94461 16.85531 22.90595 100
Unit: milliseconds
expr min lq mean median uq max neval
{ test <- geo_netspeed(ips) } 647.7697 692.8401 855.9299 889.0443 971.7102 1221.777 100
Unit: seconds
expr min lq mean median uq max neval
{ test <- c_ua_parse(data, regex_path) } 14.45279 14.62117 14.89684 14.79579 15.0501 17.24928 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment