Skip to content

Instantly share code, notes, and snippets.

@solnic
Created December 16, 2014 22:49
Show Gist options
  • Select an option

  • Save solnic/e924db30c0f11192b996 to your computer and use it in GitHub Desktop.

Select an option

Save solnic/e924db30c0f11192b996 to your computer and use it in GitHub Desktop.
-- create_table(:users)
-> 0.0039s
LOADED 1000 users via ROM/Sequel
LOADED 1000 users via ActiveRecord
Calculating -------------------------------------
rom.read(:user_json).all.to_a
16 i/100ms
ARUser.all.map(&:as_json)
3 i/100ms
-------------------------------------------------
rom.read(:user_json).all.to_a
158.8 (±6.9%) i/s - 800 in 5.062057s
ARUser.all.map(&:as_json)
32.4 (±3.1%) i/s - 162 in 5.002296s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment