Skip to content

Commit

Permalink
Fix a couple bench typos
Browse files Browse the repository at this point in the history
  • Loading branch information
nicksieger committed Nov 29, 2009
1 parent 4314822 commit 4c5c991
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bench/bench_create.rb
@@ -1,10 +1,10 @@
require File.dirname(__FILE__) + '/bench_model'

puts "Widget.new.valid?"
puts "Widget.create"
Benchmark.bm do |make|
TIMES.times do
make.report do
1_000.times do
10_000.times do
Widget.create!(:name => "bench", :description => "Bench record")
end
end
Expand Down
2 changes: 1 addition & 1 deletion bench/bench_model.rb
Expand Up @@ -36,7 +36,7 @@
end
require 'benchmark'

if defined? RUBY_ENGINE && RUBY_ENGINE == "jruby"
if defined?(RUBY_ENGINE) && RUBY_ENGINE == "jruby"
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../drivers/mysql/lib'
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../adapters/mysql/lib'
Expand Down

0 comments on commit 4c5c991

Please sign in to comment.