Skip to content

Commit

Permalink
fixes the fixnum benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
burningTyger committed Mar 13, 2011
1 parent 6dc4094 commit 381aad7
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_cmp.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = 10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 10000.0

x.report "Fixnum <=> Fixnum" do |times|
Expand Down
4 changes: 2 additions & 2 deletions benchmark/core/fixnum/bench_div.rb
Expand Up @@ -20,15 +20,15 @@
x.report "Fixnum / Bignum => Fixnum" do |times|
i = 0
while i < times
big_fixnum * bignum
big_fixnum / bignum
i += 1
end
end

x.report "Fixnum / Float => Float" do |times|
i = 0
while i < times
big_fixnum * float
big_fixnum / float
i += 1
end
end
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_eql.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = 10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 10000.0

x.report "Fixnum == Fixnum" do |times|
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_ge.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = 10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 10000.0

x.report "Fixnum > Fixnum" do |times|
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_gt.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = 10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 10000.0

x.report "Fixnum > Fixnum" do |times|
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_le.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = 10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 10000.0

x.report "Fixnum <= Fixnum" do |times|
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_lt.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = 10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 10000.0

x.report "Fixnum < Fixnum" do |times|
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_mod.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = 10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 1234.0

x.report "Fixnum %% Fixnum => Fixnum" do |times|
Expand Down
2 changes: 1 addition & 1 deletion benchmark/core/fixnum/bench_sub.rb
Expand Up @@ -6,7 +6,7 @@

small_fixnum = -10000
big_fixnum = Benchmark::Helpers.fixnum_max
bignum = Benchmark::Helpers.fixnum_max - 1
bignum = Benchmark::Helpers.fixnum_max + 1
float = 10000.0

x.report "Fixnum - Fixnum => Fixnum" do |times|
Expand Down

0 comments on commit 381aad7

Please sign in to comment.