Project

General

Profile

Actions

Bug #1560

closed

multi core operations are slower on trunk (possible regression)

Added by dcu (David Cuadrado) almost 15 years ago. Updated almost 13 years ago.

Status:
Rejected
Assignee:
-
ruby -v:
ruby 1.9.2dev (2009-06-01 trunk 23616) [i686-linux]
[ruby-core:23683]

Description

=begin
following an article[1] I found that ruby 1.9.0(and 1.9.1) is faster than the trunk performing multi core operations, the benchmarks:

$ ruby1.9 -v
ruby 1.9.2dev (2009-06-01 trunk 23616) [i686-linux]
$ ruby1.9 multi-core.rb
Total number of insane floating point divisions in 15 seconds is 743108

$ ruby1.8 -v
ruby 1.8.7 (2008-08-11 patchlevel 72) [i486-linux]
$ ruby1.8 multi-core.rb
Total number of insane floating point divisions in 15 seconds is 3156218

$ /usr/bin/ruby1.9 -v
ruby 1.9.0 (2008-06-20 revision 17482) [i486-linux]
$ /usr/bin/ruby1.9 multi-core.rb
Total number of insane floating point divisions in 15 seconds is 3952439

[1] http://letsgetdugg.com/2009/04/28/ruby-scaling-up-to-multiple-cpus/
[2] code: http://pastie.org/461592
=end

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0