Skip to content

Instantly share code, notes, and snippets.

@solnic
Last active December 7, 2015 20:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save solnic/aa011661616c2645f3df to your computer and use it in GitHub Desktop.
Save solnic/aa011661616c2645f3df to your computer and use it in GitHub Desktop.
ActiveModel/ActionController::Parameters vs Dry::Validation::Schema
Calculating -------------------------------------
ActiveModel::Validations
134.000 i/100ms
dry-validation 2.145k i/100ms
-------------------------------------------------
ActiveModel::Validations
1.499k (±11.5%) i/s - 7.504k
dry-validation 22.300k (±10.5%) i/s - 111.540k
Comparison:
dry-validation: 22299.8 i/s
ActiveModel::Validations: 1498.9 i/s - 14.88x slower
Calculating -------------------------------------
ActionController::Paremeters
2.576k i/100ms
dry-validation 13.354k i/100ms
-------------------------------------------------
ActionController::Paremeters
25.577k (±19.1%) i/s - 123.648k
dry-validation 160.249k (±14.7%) i/s - 787.886k
Comparison:
dry-validation: 160249.3 i/s
ActionController::Paremeters: 25577.0 i/s - 6.27x slower
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment