[#12073] Re: Ruby is much slower on linux when compiled with --enable-pthread? — "M. Edward (Ed) Borasky" <znmeb@...>

-----BEGIN PGP SIGNED MESSAGE-----

9 messages 2007/09/04

[#12085] New array methods cycle, choice, shuffle (plus bug in cycle) — David Flanagan <david@...>

Four new methods have been added to Array the Ruby 1.9 trunk. I've got

81 messages 2007/09/06
[#18036] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Charles Oliver Nutter <charles.nutter@...> 2008/07/31

Restarting this thread because I missed it the first time around and

[#18037] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Yukihiro Matsumoto <matz@...> 2008/07/31

Hi,

[#18038] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — "Gregory Brown" <gregory.t.brown@...> 2008/08/01

On Thu, Jul 31, 2008 at 7:50 PM, Yukihiro Matsumoto <matz@ruby-lang.org> wrote:

[#18046] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Michael Neumann <mneumann@...> 2008/08/01

Gregory Brown wrote:

[#18048] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Charles Oliver Nutter <charles.nutter@...> 2008/08/01

Michael Neumann wrote:

[#18051] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — "David A. Black" <dblack@...> 2008/08/01

Hi --

[#18053] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — "Wilson Bilkovich" <wilsonb@...> 2008/08/01

On 8/1/08, David A. Black <dblack@rubypal.com> wrote:

[#18074] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — David Flanagan <david@...> 2008/08/01

Wilson Bilkovich wrote:

[#18080] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Yukihiro Matsumoto <matz@...> 2008/08/02

Hi,

[#18097] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — "Pit Capitain" <pit.capitain@...> 2008/08/03

2008/8/2 Yukihiro Matsumoto <matz@ruby-lang.org>:

[#18040] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Jim Weirich <jim.weirich@...> 2008/08/01

On Jul 31, 2008, at 7:33 PM, Charles Oliver Nutter wrote:

[#18056] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Thomas Enebo <Thomas.Enebo@...> 2008/08/01

Jim Weirich wrote:

[#18059] Re: New array methods cycle, choice, shuffle (plus bug in cycle) — Jim Weirich <jim.weirich@...> 2008/08/01

On Aug 1, 2008, at 1:53 PM, Thomas Enebo wrote:

[#12096] Next 1.8.6 on Sept. 22 — Urabe Shyouhei <shyouhei@...>

Hi all.

28 messages 2007/09/09

[#12201] how about actors implemented in ruby-core itself — hemant <gethemant@...>

Hi,

12 messages 2007/09/20

[#12248] arbitrary Unicode characters in identifiers? — David Flanagan <david@...>

12 messages 2007/09/26

[#12284] gc.c -- possible logic error? — Hugh Sasse <hgs@...>

I've been looking at Tom Copeland's memory allocation problem:

36 messages 2007/09/28
[#12329] Re: gc.c -- possible logic error? — Tanaka Akira <akr@...> 2007/10/01

In article <Pine.GSO.4.64.0709281302390.26570@brains.eng.cse.dmu.ac.uk>,

[#12305] Will 1.8.6 remain compiled with VC6? — "Luis Lavena" <luislavena@...>

Hello Core developers.

29 messages 2007/09/30
[#12306] Re: Will 1.8.6 remain compiled with VC6? — "Austin Ziegler" <halostatue@...> 2007/09/30

On 9/30/07, Luis Lavena <luislavena@gmail.com> wrote:

Latest benchmarks

From: "M. Edward (Ed) Borasky" <znmeb@...>
Date: 2007-09-24 02:57:20 UTC
List: ruby-core #12237
I just ran the benchmark suite that comes with Ruby 1.9 on my 32-bit
machine (1.3 GHz Athlon Thunderbird). The two versions of Ruby are
1.8.6-p110 and Ruby 1.9.0 revision 13500 from the SVN repository. Both
were compiled "-march=athlon-tbird -O3" with gcc 4.2.0. Here are the
numbers -- if you've got OpenOffice, I've attached the spreadsheet:

benchmark	1.8.6-p110	1.9.0-r13500	ratio	log ratio
app_answer	2.66	0.2	13.49	2.6
app_factorial	1.8	1.37	1.32	0.28
app_fib	16.54	2.44	6.77	1.91
app_mandelbrot	5.55	2.36	2.35	0.86
app_pentomino	256.81	80.46	3.19	1.16
app_raise	3.03	4.11	0.74	-0.31
app_strconcat	2.82	1.92	1.47	0.38
app_tak	21.28	3.82	5.57	1.72
app_tarai	17.02	3.07	5.54	1.71
loop_generator	83.06	3.57	23.27	3.15
loop_times	15.55	4.93	3.16	1.15
loop_whileloop	26.56	2.73	9.74	2.28
loop_whileloop2	3.65	0.55	6.67	1.9
so_ackermann	48.52	3.19	15.21	2.72
so_array	15.95	5.51	2.89	1.06
so_concatenate	6.84	1.73	3.96	1.38
so_count_words	0.94	0.01	72.38	4.28
so_exception	6.47	5.77	1.12	0.11
so_lists	2.44	1.25	1.95	0.67
so_matrix	4.35	1.47	2.97	1.09
so_nested_loop	15.57	4.5	3.46	1.24
so_object	14.24	6.45	2.21	0.79
so_random	4.86	1.75	2.79	1.03
so_sieve	1.2	0.3	3.97	1.38
vm1_block	63.43	9.74	6.51	1.87
vm1_const	34.22	4.3	7.95	2.07
vm1_ensure	47.44	3.37	14.1	2.65
vm1_length	35.18	7.36	4.78	1.56
vm1_rescue	32.69	2.86	11.41	2.43
vm1_simplereturn	55.13	6.5	8.49	2.14
vm1_swap	42.12	5.03	8.38	2.13
vm2_array	10.96	5.05	2.17	0.77
vm2_case	8.36	1.15	7.28	1.98
vm2_method	37.23	7.79	4.78	1.56
vm2_mutex	14.45	5.39	2.68	0.99
vm2_poly_method	43.42	8.46	5.13	1.64
vm2_poly_method_ov	8.04	1.4	5.75	1.75
vm2_proc	14.49	2.84	5.11	1.63
vm2_regexp	7.87	5.6	1.4	0.34
vm2_send	9.55	1.56	6.11	1.81
vm2_super	12.08	2.41	5.01	1.61
vm2_unif1	9.06	1.54	5.87	1.77
vm2_zsuper	13.18	2.52	5.22	1.65
vm3_thread_create_join	0.03	0.26	0.1	-2.31
vm3_thread_mutex	281.97	1.91	147.86	5
				
		Min	0.1	-2.31
		P05	1.1	0.14
		P10	1.4	0.35
		P25	2.8	1.02
		P50	5.1	1.62
		P75	6.9	1.93
		P90	12.8	2.55
		P95	15.0	2.71
		Max	72.4	4.28

Notes:
Column 1 is the benchmark name
Column 2 is the time for 1.8
Column 3 is the time for 1.9
Column 4 is the ratio of 1.8 time / 1.9 time
Column 5 is the log to the base e (natural log) of the ratio.

The statistics below are derived from these natural logs. Specifically,
Min is the worst case ratio from the test suite, Max is the best case
ratio from the test suite, and Pxx are the percentiles. What these mean
is that xx percent of the time, you can expect the ratio to be *below*
that value. So, since P50 is 5.1, half of the time you can expect the
ratio to be below 5.1 and half of the time you can expect it to be above
5.1. Only 25 percent of the time is the ratio below 2.8 percent, etc.

So ... in a nutshell ... 1.9.0 is five times as fast as 1.8.6!

I can do fancier stuff in R, but I probably won't -- 5x is easy to remember.

Attachments (1)

bench.ods (14.8 KB, application/vnd.oasis.opendocument.spreadsheet)

In This Thread

Prev Next