Sha256: 2f4b279a04b4c5713006bedcc324aab0af095f1dbfc49d3ade327d71da657d45

Contents?: true

Size: 383 Bytes

Versions: 30

Compression:

Stored size: 383 Bytes

Contents

# frozen_string_literal: true

require "grumlin"
require "benchmark/ips"

namespace :benchmark do
  desc "Run serialization benchmarks"
  task :serialization do
    repo = Grumlin::Benchmark::Repository.new

    Benchmark.ips do |x|
      x.time = 3
      x.report("Simple") { repo.simple_test }
      x.report("Simple shortcut") { repo.simple_test_with_shortcut }
    end
  end
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
grumlin-1.2.0 lib/tasks/benchmark.rake
grumlin-1.1.0 lib/tasks/benchmark.rake
grumlin-1.0.4 lib/tasks/benchmark.rake
grumlin-1.0.3 lib/tasks/benchmark.rake
grumlin-1.0.3.beta1 lib/tasks/benchmark.rake
grumlin-1.0.2 lib/tasks/benchmark.rake
grumlin-1.0.1 lib/tasks/benchmark.rake
grumlin-1.0.0 lib/tasks/benchmark.rake
grumlin-1.0.0.rc7 lib/tasks/benchmark.rake
grumlin-1.0.0.rc6 lib/tasks/benchmark.rake
grumlin-1.0.0.rc5 lib/tasks/benchmark.rake
grumlin-1.0.0.rc4 lib/tasks/benchmark.rake
grumlin-1.0.0.rc3 lib/tasks/benchmark.rake
grumlin-1.0.0.rc2 lib/tasks/benchmark.rake
grumlin-1.0.0.rc1 lib/tasks/benchmark.rake
grumlin-0.23.0 lib/tasks/benchmark.rake
grumlin-0.22.5 lib/tasks/benchmark.rake
grumlin-0.22.4 lib/tasks/benchmark.rake
grumlin-0.22.3 lib/tasks/benchmark.rake
grumlin-0.22.2 lib/tasks/benchmark.rake