time ruby scratch/record_activity.rb scratch/2013-04-14-23.sqlite scratch/2013-04-14-23.json.gz

real	46m42.770s
user	0m52.451s
sys	0m15.113s