[Melbourne-pm] and the winner is C! (so far anyway, no big surprise)
Sam Watkins
sam at nipl.net
Fri May 21 01:28:01 PDT 2010
As usual, I forgot to attach the code.
read.c is attached here!
Sam
On Fri, May 21, 2010 at 08:23:26AM +0000, Sam Watkins wrote:
> results first!
>
> Here's the leaderboard of CSV readers in various languages, compared to C,
> for a 100,000 line CSV file:
>
> C 1.00
> brace 1.16
> perl XS 11.33
> (bad) go 17.50
> scala 19.32
> perl 62.51
>
>
> I wrote a C version, based on my brace version (the 1.00 above). It's 14%
> faster than the brace version
-------------- next part --------------
A non-text attachment was scrubbed...
Name: read.c
Type: text/x-csrc
Size: 2028 bytes
Desc: not available
URL: <http://mail.pm.org/pipermail/melbourne-pm/attachments/20100521/38005188/attachment.bin>
More information about the Melbourne-pm
mailing list