-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy pathRakefile
More file actions
35 lines (26 loc) · 785 Bytes
/
Copy pathRakefile
File metadata and controls
35 lines (26 loc) · 785 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# frozen_string_literal: true
require 'rubygems'
require 'bundler/gem_tasks'
Bundler.setup :default, :development
require 'rspec/core'
require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) do |spec|
spec.pattern = FileList['spec/**/*_spec.rb']
end
require 'rubocop/rake_task'
RuboCop::RakeTask.new(:rubocop)
task default: %i[rubocop spec]
namespace :benchmark do
desc 'Run benchmark for basic Ruby::Enum operations vs. plain Ruby equivalents'
task :basic do
require_relative 'benchmarks/basic'
end
desc 'Run benchmark for the Ruby::Enum::Case'
task :case do
require_relative 'benchmarks/case'
end
desc 'Run benchmark for enum lookups on classes with inheritance'
task :inheritance do
require_relative 'benchmarks/inheritance'
end
end