Sha256: d30cff19c7e520d26558390706444aba7c736813abc23a84c618c4d47de6c404
Contents?: true
Size: 307 Bytes
Versions: 4
Compression:
Stored size: 307 Bytes
Contents
require_relative '../lib/linepipe' Linepipe.benchmark(100_000) do data { %w(foo bar baz) } step("Upcasing") { |data| data.map(&:upcase) } step("Reversing") { |data| data.reverse } step("Sorting") { |data| data.sort } expect { |data| data == %w(BAZ BAR FOO) } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
linepipe-0.2.0 | examples/benchmark.rb |
linepipe-0.1.2 | examples/benchmark.rb |
linepipe-0.1.1 | examples/benchmark.rb |
linepipe-0.1.0 | examples/benchmark.rb |