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-0.22.1 lib/tasks/benchmark.rake
grumlin-0.22.0 lib/tasks/benchmark.rake
grumlin-0.21.1 lib/tasks/benchmark.rake
grumlin-0.21.0 lib/tasks/benchmark.rake
grumlin-0.20.2 lib/tasks/benchmark.rake
grumlin-0.20.1 lib/tasks/benchmark.rake
grumlin-0.20.0 lib/tasks/benchmark.rake
grumlin-0.19.7 lib/tasks/benchmark.rake
grumlin-0.19.6 lib/tasks/benchmark.rake
grumlin-0.19.5 lib/tasks/benchmark.rake