RFC: std.json sucessor

Ary Borenszweig via Digitalmars-d digitalmars-d at puremagic.com
Sun Oct 19 16:11:24 PDT 2014


On 10/18/14, 4:53 PM, Sean Kelly wrote:
> On Friday, 17 October 2014 at 18:27:34 UTC, Ary Borenszweig wrote:
>>
>> Once its done you can compare its performance against other languages
>> with this benchmark:
>>
>> https://github.com/kostya/benchmarks/tree/master/json
>
> Wow, the C++Rapid parser is really impressive.  I threw together a test
> with my own parser for comparison, and Rapid still beat it.  It's the
> first parser I've encountered that's faster.
>
>
> Ruby
> 0.4995479721139979
> 0.49977992077421846
> 0.49981146157805545
> 7.53s, 2330.9Mb
>
> Python
> 0.499547972114
> 0.499779920774
> 0.499811461578
> 12.01s, 1355.1Mb
>
> C++ Rapid
> 0.499548
> 0.49978
> 0.499811
> 1.75s, 1009.0Mb
>
> JEP (mine)
> 0.49954797
> 0.49977992
> 0.49981146
> 2.38s, 203.4Mb

Yes, C++ rapid seems to be really, really fast. It has some sse2/see4 
specific optimizations and I guess a lot more. I have to investigate 
more in order to do something similar :-)


More information about the Digitalmars-d mailing list