Skip to content

Instantly share code, notes, and snippets.

@barrynewman
barrynewman / redis_json_marshal_eval_benchmarks.rb
Created April 23, 2012 21:06 — forked from shilov/redis_json_marshal_eval_benchmarks.rb
Ruby Redis benchmarks for JSON vs Marshal vs String
# http://forrst.com/posts/JSON_vs_Marshal_vs_eval_Which_is_the_fastest_fo-6Qy
require 'benchmark'
require 'json'
require 'redis'
# -----------------
puts "Initialize variables.."