Sha256: 34e40932a7824d9b59ce852eb607bf630312c247072f683fd3a5d31e469779f8

Contents?: true

Size: 276 Bytes

Versions: 5

Compression:

Stored size: 276 Bytes

Contents

# frozen_string_literal: true

require_relative 'setup'

Schema = Dry::Types['params.hash'].schema(
  email?: 'string',
  age?: 'coercible.integer'
).lax

ValidInput = { email: 'jane@doe.org', age: '19' }.freeze

profile do
  10_000.times do
    Schema.(ValidInput)
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
dry-types-1.2.2 benchmarks/profile_lax_schema_valid.rb
dry-types-1.2.1 benchmarks/profile_lax_schema_valid.rb
dry-types-1.2.0 benchmarks/profile_lax_schema_valid.rb
dry-types-1.1.1 benchmarks/profile_lax_schema_valid.rb
dry-types-1.1.0 benchmarks/profile_lax_schema_valid.rb