Live data from Hacker News

"Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

skitch.com

21–30 of 31 posts

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#21
post #7
post #5

Stats for Rails?

"Next was comparing Merb against other ruby options. Returning directly from the Merb router kills everything, but there aren’t many scenarios you could use that. Sinatra is just slightly faster than returning from the Merb controller, which both outperform Rails by a 3-4x. Rails itself still kills CakePHP. "

oh, crap.

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#22
post #16

Earlier quoted context omitted.

The white bars are time, the black bars are memory usage. Ergo, in most cases, PHP is running 2-5x faster than Ruby, but using about 3x as much memory.

Memory usage can probably be attributed to how PHP manages memory (hint: It /almost/ doesn't).

Right.

Outlying results have to do with that whatever that specific benchmark concerns, e.g. thread startup cost.

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#24

Translate please - http://shootout.alioth.debian.org/gp4/benchmark.php?test=all...

The white bars are time, the black bars are memory usage. Ergo, in most cases, PHP is running 2-5x faster than Ruby, but using about 3x as much memory.

> in most cases

In 9/15 cases PHP is >= 2x faster In 6/15 cases PHP uses less memory

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#25
post #16

Earlier quoted context omitted.

Memory usage can probably be attributed to how PHP manages memory (hint: It /almost/ doesn't).

Right. Outlying results have to do with that whatever that specific benchmark concerns, e.g. thread startup cost.

> e.g. thread startup cost

There are 2 which require threads, there's no PHP program for either of those so why do you think "thread startup cost" has any relevance?

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#26
post #3

You can also say "Smalltalk isn't slow" or "Lisp isn't slow", but you won't see anyone run towards either of them...

> but you won't see anyone run towards either of them...

Avi Bryant did.

http://www.seaside.st/

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#27
post #25

Earlier quoted context omitted.

Right. Outlying results have to do with that whatever that specific benchmark concerns, e.g. thread startup cost.

> e.g. thread startup cost There are 2 which require threads, there's no PHP program for either of those so why do you think "thread startup cost" has any relevance?

I wasn't stating which the outliers test, I was saying how to read the graph.

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#28
post #24

Earlier quoted context omitted.

The white bars are time, the black bars are memory usage. Ergo, in most cases, PHP is running 2-5x faster than Ruby, but using about 3x as much memory.

> in most cases In 9/15 cases PHP is >= 2x faster In 6/15 cases PHP uses less memory

Thanks for being so pedantic for us. We understand how valuable your time is, and it's quite flattering that you chose to spend it on catching and correcting microscopic ambiguities in our discussions that might have otherwise gone undiscovered.

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#29
post #25

Earlier quoted context omitted.

> e.g. thread startup cost There are 2 which require threads, there's no PHP program for either of those so why do you think "thread startup cost" has any relevance?

I wasn't stating which the outliers test, I was saying how to read the graph.

If that was your intention it's strange that as an example you suggested something that is not shown on the graph.

Re: "Ruby isn't slow. If anyone tells you PHP is faster than Ruby, tell them: 'Benchmark it.'"

#30
post #24

Earlier quoted context omitted.

> in most cases In 9/15 cases PHP is >= 2x faster In 6/15 cases PHP uses less memory

Thanks for being so pedantic for us. We understand how valuable your time is, and it's quite flattering that you chose to spend it on catching and correcting microscopic ambiguities in our discussions that might have otherwise gone undiscovered.

Thanks for offering help to rlachenal.

As the webpage states "a white bar shows which language implementation had the better time, and a black bar shows which had the better memory use".

More flattery - in context "most" is not ambiguous, it's vague.

As you are saying how to read the graph, a specific example will be more helpful than a vague summary.

Post reply on HN