help-smalltalk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-smalltalk] performance of the json parser


From: Robin Redeker
Subject: [Help-smalltalk] performance of the json parser
Date: Sat, 3 Nov 2007 18:57:46 +0100
User-agent: Mutt/1.5.11+cvs20060403

Hi!

I'm having a little performance problem with the JSON example.
Given the following program:

   http://www.ta-sa.org/files/data/jstest.st

Produces this output here:

   Best : 2 ms
   Worst: 21 ms
   Avg  : 9 ms

That means: the best parsing time is 2ms, the worst was 21 ms, and it
takes 9ms to parse the little json string in the file there.

I don't know where the variance comes from, it looks weird. And it seems
to be even more weird that that small string takes up to 21ms to parse.

The same string takes, in the fast C JSON parser I know, only 0.0165 ms.
And the slowes C JSON parser I know takes 0.147 ms.  I don't know how
fast smalltalk is when it comes down to string processing, but I
certainly would not expect an avg of 9ms to parse that string, at least
not with that variance. There must be something else that slows this
down so much.

Any suggestions?


Robin




reply via email to

[Prev in Thread] Current Thread [Next in Thread]