Sha256: 3c4ead0a53d85eeda4d91bce3b2e6d44a3d0d20715d1d2f5423c023aab966c86

Contents?: true

Size: 1.42 KB

Versions: 8

Compression:

Stored size: 1.42 KB

Contents

contexts:
  - name: "1.1.0.dev"
    gems:
      enumerable-statistics: "1.1.0.dev"
    require: false
    prelude: |-
      require 'enumerable/statistics'
  - name: "HEAD"
    prelude: |-
      require 'bundler/setup'
      require 'enumerable/statistics'
prelude: |-
  n = 1000
  chars = ('a'..'m').to_a
  enum = Array.new(n) { chars.sample }.each
benchmark:
  inject: |-
    enum.inject(Hash.new(0)) { |h, x| h[x] += 1; h }
  unsort_keepna: |-
    enum.value_counts(sort: false, dropna: false)
  unsort_dropna: |-
    enum.value_counts(sort: false, dropna: true)
  sort_keepna: |-
    enum.value_counts(sort: true, dropna: false)
  sort_dropna: |-
    enum.value_counts(sort: true, dropna: true)
  norm_unsort_keepna: |-
    enum.value_counts(normalize: true, sort: false, dropna: false)
  norm_unsort_dropna: |-
    enum.value_counts(normalize: true, sort: false, dropna: true)
  norm_sort_keepna: |-
    enum.value_counts(normalize: true, sort: true, dropna: false)
  norm_sort_dropna: |-
    enum.value_counts(normalize: true, sort: true, dropna: true)
  sort_asc_keepna: |-
    enum.value_counts(sort: true, ascending: true, dropna: false)
  sort_asc_dropna: |-
    enum.value_counts(sort: true, ascending: true, dropna: true)
  norm_sort_asc_keepna: |-
    enum.value_counts(normalize: true, sort: true, ascending: true, dropna: false)
  norm_sort_asc_dropna: |-
    enum.value_counts(normalize: true, sort: true, ascending: true, dropna: true)

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
enumerable-statistics-2.0.7 bench/enum_value_counts.yml
enumerable-statistics-2.0.6 bench/enum_value_counts.yml
enumerable-statistics-2.0.5 bench/enum_value_counts.yml
enumerable-statistics-2.0.3 bench/enum_value_counts.yml
enumerable-statistics-2.0.2 bench/enum_value_counts.yml
enumerable-statistics-2.0.1 bench/enum_value_counts.yml
enumerable-statistics-2.0.0 bench/enum_value_counts.yml
enumerable-statistics-2.0.0.pre bench/enum_value_counts.yml