Sha256: 34f4a4c86523be5ceea3f605b8b144e9b134ec7b9d609c94a99cd9d5bc938639
Contents?: true
Size: 555 Bytes
Versions: 2
Compression:
Stored size: 555 Bytes
Contents
require "bundler/gem_tasks" require "rake/testtask" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/*_test.rb"] end task :default => :test task :benchmark do require "benchmark/ips" require "trend" series = {} date = Date.parse("2018-01-01") 1000.times do series[date] = rand(100) date += 1 end Trend.url = "http://localhost:8000" Benchmark.ips do |x| x.report("anomalies") { Trend.anomalies(series) } x.report("forecast") { Trend.forecast(series) } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
trend-0.1.1 | Rakefile |
trend-0.1.0 | Rakefile |