#1 Re: mORMot 1 » Benchmarking JsonDataObjects JSON parser » 2015-02-25 13:39:23

z.

I have this test code:

      for j := 0 to 10000 - 1 do
        begin
          json.S[IntToStr(j)+'S']:='abcdefg';
          json.I[IntToStr(j)+'I']:=1234;
        end;

and JsonDataObjects is 5 times slower than SuperObject (which I currently use).

So I am not sure if I do anything wrong or you may consider something like that in your tests wink

#2 Re: mORMot 1 » Benchmarking JsonDataObjects JSON parser » 2015-02-25 06:36:57

z.

Your tests do not include any real write test - create JSON structure programmatically and change its values (S['title']:='data') - if I am not mistaken.
Is there any reason why it is not included? Because that would probably influence results a lot.

Board footer

Powered by FluxBB