Sha256: 5d0703bef1435eae6e809c98c4ed1ddf41425e6f8aa074b8e2263027a621ba2b
Contents?: true
Size: 1.4 KB
Versions: 8
Compression:
Stored size: 1.4 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 ary = Array.new(n) { chars.sample } benchmark: inject: |- ary.inject(Hash.new(0)) { |h, x| h[x] += 1; h } unsort_keepna: |- ary.value_counts(sort: false, dropna: false) unsort_dropna: |- ary.value_counts(sort: false, dropna: true) sort_keepna: |- ary.value_counts(sort: true, dropna: false) sort_dropna: |- ary.value_counts(sort: true, dropna: true) norm_unsort_keepna: |- ary.value_counts(normalize: true, sort: false, dropna: false) norm_unsort_dropna: |- ary.value_counts(normalize: true, sort: false, dropna: true) norm_sort_keepna: |- ary.value_counts(normalize: true, sort: true, dropna: false) norm_sort_dropna: |- ary.value_counts(normalize: true, sort: true, dropna: true) sort_asc_keepna: |- ary.value_counts(sort: true, ascending: true, dropna: false) sort_asc_dropna: |- ary.value_counts(sort: true, ascending: true, dropna: true) norm_sort_asc_keepna: |- ary.value_counts(normalize: true, sort: true, ascending: true, dropna: false) norm_sort_asc_dropna: |- ary.value_counts(normalize: true, sort: true, ascending: true, dropna: true)
Version data entries
8 entries across 8 versions & 1 rubygems