Skip to content

Instantly share code, notes, and snippets.

@Ironholds
Created November 26, 2014 15:02
Show Gist options
  • Save Ironholds/475dcc6d9742b4af8338 to your computer and use it in GitHub Desktop.
Save Ironholds/475dcc6d9742b4af8338 to your computer and use it in GitHub Desktop.
> library(WMUtils)
Loading required package: jsonlite
Attaching package: ‘jsonlite’
The following object is masked from ‘package:utils’:
View
Loading required package: RMySQL
Loading required package: DBI
Loading required package: data.table
data.table 1.9.2 For help type: help("data.table")
Loading required package: parallel
Loading required package: RJDBC
Loading required package: rJava
> library(microbenchmark)
> ips <- mysql_query("SELECT DISTINCT(cuc_ip) FROM cu_changes WHERE cuc_ip IS NOT NULL LIMIT 10000;","enwiki")$cuc_ip
> microbenchmark({
+ test <- geo_country(ips)
+ })
Loading required namespace: multcomp
Unit: milliseconds
expr min lq mean median uq max neval
{ test <- geo_country(ips) } 6.425794 6.682633 9.810354 11.81717 11.86778 14.13257 100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment