Skip to content

Instantly share code, notes, and snippets.

# in response to http://littlelines.com/blog/2014/06/27/elixir-vs-ruby-showdown-part-one
# comment on https://twitter.com/josevalim/status/483165833699799040
require 'yaml'
module I18n
SPEC = YAML.load(<<-END)
en:
foo: "bar"
flash:
@vjoel
vjoel / sorted-set-bench.out
Created November 18, 2013 21:45
Benchmarks comparing ruby's SortedSet implemented with and without the rbtree extension.
Rehearsal ----------------------------------------------------------------------------
SortedSetRBTree#add and #first 0.040000 0.000000 0.040000 ( 0.039830)
SortedSetNoRBTree#add and #first 17.180000 0.360000 17.540000 ( 17.567993)
------------------------------------------------------------------ total: 17.580000sec
user system total real
SortedSetRBTree#add and #first 0.050000 0.000000 0.050000 ( 0.042851)
SortedSetNoRBTree#add and #first 36.200000 0.670000 36.870000 ( 36.914300)