I've been trying to understand how to setup systems from
the ground up on Ubuntu. I just installed redis onto
the box and here's how I did it and some things to look
out for.
To install:
| require 'benchmark' | |
| STRING = 'abc' | |
| ITERATIONS = 500000 | |
| Benchmark.bm do |bench| | |
| for n in [2,3,4] | |
| n_strings = Array.new(n, STRING) | |
| bench.report("add #{n}") do |