Skip to content

Commit

Permalink
Move benchmark/profiling dependencies from gemspec to Gemfile
Browse files Browse the repository at this point in the history
  • Loading branch information
gonzedge committed Jan 6, 2017
1 parent 793ac2d commit 0ac476d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
6 changes: 6 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ source 'https://rubygems.org'

gemspec

group :development do
gem 'ruby-prof'
gem 'memory_profiler'
gem 'benchmark-ips'
end

group :test do
gem 'simplecov', require: false
gem 'codeclimate-test-reporter', require: false
Expand Down
1 change: 1 addition & 0 deletions lib/rambling/trie/tasks/performance.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
require 'memory_profiler'
require 'benchmark/ips'
require_relative 'helpers/path'
require_relative 'helpers/time'
require_relative 'performance/directory'
require_relative 'performance/benchmark'
require_relative 'performance/profile/call_tree'
Expand Down
1 change: 1 addition & 0 deletions lib/rambling/trie/tasks/performance/benchmark.rb
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,7 @@ def generate_scans_benchmark filename = nil

desc 'Compare ips for different implementations (changes over time)'
task :compare do
require 'benchmark/ips'
Benchmark.ips do |b|
hash = { 'thing' => 'gniht' }

Expand Down
4 changes: 0 additions & 4 deletions rambling-trie.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,5 @@ Gem::Specification.new do |gem|

gem.add_development_dependency 'rspec', '~> 3.5'
gem.add_development_dependency 'rake', '~> 12.0'
gem.add_development_dependency 'ruby-prof', '~> 0.16.2'
gem.add_development_dependency 'memory_profiler', '~> 0.9.7'
gem.add_development_dependency 'benchmark-ips', '~> 2.7.2'
gem.add_development_dependency 'yard', '~> 0.9.5'
gem.add_development_dependency 'redcarpet', '~> 3.3.4'
end

0 comments on commit 0ac476d

Please sign in to comment.