Ruby Patriotism: Python+XML v. Ruby+YAML

We’ve got a good old-fashioned derby going on in blogoland. Perhaps
some of you fully-vested shareholders can give me a hand here.

Some disparaging Ruby+XML benchmarks from yesterday:
http://www.intertwingly.net/blog/

And now I’m making a case for the speed of Ruby+YAML:
http://www.whytheluckystiff.net/

So, if this gets heated, I’ll end it pronto. This isn’t name-calling or
brute campaign (I hope). A friendly face-off. Like a pick-up game of
basketball.

Here’s what you can do:

So what’s the goal of this? Well, I’d just like to give Ruby a good
showing. I think we can make a tight case for using Ruby and YAML
together. And a chance to get some good Ruby code out in the eyes of
those who haven’t seen it.

_why

Has anyone benchmarked Python+YAML? You should account for all the variables.

-Mark

Ruby+libxml2 certainly works well, and borrows a lot of the nice API
concepts from REXML. Certainly it should be benchmarked if you’re trying
to examine Ruby and XML together.

It’s only drawback (other than library dependency on libxml2) is that it is
not documented. You just have to search the modules/classes and see what
methods are defined and figure out how to use them.

Certainly if you just want to throw out a number for parsing the file (like
for Python2.2 + libxml2) it’s really easy to do.

···

On Oct 9, why the lucky stiff wrote:

We’ve got a good old-fashioned derby going on in blogoland. Perhaps
some of you fully-vested shareholders can give me a hand here.

Some disparaging Ruby+XML benchmarks from yesterday:
http://www.intertwingly.net/blog/

And now I’m making a case for the speed of Ruby+YAML:
http://www.whytheluckystiff.net/

So, if this gets heated, I’ll end it pronto. This isn’t name-calling or
brute campaign (I hope). A friendly face-off. Like a pick-up game of
basketball.

Here’s what you can do:

Once I’ve got the Ruby scripts working, I’ll try with Python+Syck.
Problem is that none of the Python extensions are very mature. I get
abdominal pains navigating Python’s C API. It’s generally ok, until you
get into creating classes.

_why

···

Mark J. Reed (markjreed@mail.com) wrote:

Has anyone benchmarked Python+YAML? You should account for all the variables.

-Mark

Oh, so that explains the recent illness. :slight_smile:

···

On Thursday, 9 October 2003 at 5:36:20 +0900, why the lucky stiff wrote:

Mark J. Reed (markjreed@mail.com) wrote:

Has anyone benchmarked Python+YAML? You should account for all the variables.

-Mark

Once I’ve got the Ruby scripts working, I’ll try with Python+Syck.
Problem is that none of the Python extensions are very mature. I get
abdominal pains navigating Python’s C API. It’s generally ok, until you
get into creating classes.


Jim Freeze