Create a gist now

Instantly share code, notes, and snippets.

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