Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
AR init benchmarks for Rails 4.2.8. See: https://gist.github.com/lovitt/b5edf05d11ef2571582c32d7547c1243
================== Instantiate STI base class with attributes ==================
Warming up --------------------------------------
v4.2.8 2.594k i/100ms
Calculating -------------------------------------
v4.2.8 26.917k (± 3.5%) i/s - 134.888k in 5.017398s
================ Instantiate STI base class without attributes =================
Warming up --------------------------------------
v4.2.8 12.114k i/100ms
Calculating -------------------------------------
v4.2.8 129.225k (±11.6%) i/s - 642.042k in 5.083114s
================= Instantiate STI subclass via type attribute ==================
Warming up --------------------------------------
v4.2.8 828.000 i/100ms
Calculating -------------------------------------
v4.2.8 7.523k (± 8.4%) i/s - 38.088k in 5.099731s
=================== Instantiate STI subclass with attributes ===================
Warming up --------------------------------------
v4.2.8 1.731k i/100ms
Calculating -------------------------------------
v4.2.8 16.832k (± 5.7%) i/s - 84.819k in 5.056082s
================= Instantiate STI subclass without attributes ==================
Warming up --------------------------------------
v4.2.8 3.240k i/100ms
Calculating -------------------------------------
v4.2.8 33.172k (± 3.6%) i/s - 168.480k in 5.085332s
================== Instantiate Non-STI class with attributes ===================
Warming up --------------------------------------
v4.2.8 2.962k i/100ms
Calculating -------------------------------------
v4.2.8 30.196k (± 3.7%) i/s - 151.062k in 5.009715s
================= Instantiate Non-STI class without attributes =================
Warming up --------------------------------------
v4.2.8 11.648k i/100ms
Calculating -------------------------------------
v4.2.8 127.745k (± 4.7%) i/s - 640.640k in 5.026409s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment