Sha256: 0d656da2baddb2369a8a8ea9f508f715d64793e2383b45e7968b81b3a96f84f2

Contents?: true

Size: 373 Bytes

Versions: 1

Compression:

Stored size: 373 Bytes

Contents

#!/usr/bin/env rake
require "bundler/gem_tasks"
require "rspec/core/rake_task"
RSpec::Core::RakeTask.new("spec")

require "benchmark"
require "anomaly"

task :benchmark do
  data = 1_000_000.times.map{ [rand, rand, rand, rand] }

  Benchmark.bm do |x|
    x.report { Anomaly::Detector.new(data) }
    require "narray"
    x.report { Anomaly::Detector.new(data) }
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
anomaly-0.0.3 Rakefile