Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Michael Van Canneyt
On Sat, 31 Aug 2019, Benito van der Zander wrote: Hi, when I need maximal speed, I use jsonscanner of fpJSON. It should be vastly faster than a complete parser by not allocating memory or validating the json. Although it decodes all the strings in the JSON, which require some allocations

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-31 Thread Benito van der Zander
Hi, when I need maximal speed, I use jsonscanner of fpJSON. It should be vastly faster than a complete parser by not allocating memory or validating the json. Although it decodes all the strings in the JSON, which require some allocations, even if you do not need every string. It would be fa

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Ben Grasset
On Fri, Aug 30, 2019 at 5:16 AM Michael Van Canneyt wrote: > The shootout benchmarks for example are dismally coded for FPC with as a > result that they perform badly. > Not all of them! At least, not anymore: https://benchmarksgame-team.pages.debian.net/benchmarksgame/performance/binarytrees.h

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter
Alan, oh that's a good idea. I will do that as well as add a few more parser libraries as requested by a few people in other non mailing lists threads. I will also try to find out what's going on the unicode strings as it might be a problem with the compiler. Michael, I am on Linux as well, but I

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Alan Krause
I'd recommend that you also list what license each is licensed under, as that can be an extremely large deciding factor in whether or not a given implementation can even be considered. Alan On Fri, Aug 30, 2019 at 1:19 AM Anthony Walter wrote: > I've posted a new page that tests the speed and c

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Michael Van Canneyt
On Fri, 30 Aug 2019, Anthony Walter wrote: I've posted a new page that tests the speed and correctness of several pascal based JSON parsers. https://www.getlazarus.org/json/tests/ In full disclosure I am the author of the new open source JsonTools library, and even though my parser seems to

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter
> > D'Oh. > Thanks. The links were swapped and now have been fixed. Nice find. ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Jean SUZINEAU
Hello, Le 30/08/2019 à 10:18, Anthony Walter a écrit : I've posted a new page that tests the speed and correctness of several pascal based JSON parsers. https://www.getlazarus.org/json/tests/ it seems you made a typo in your html, JsonTools points to https://sourceforge.net/projects/lkjson/

[fpc-pascal] Tests results of several pascal based JSON parsers

2019-08-30 Thread Anthony Walter
I've posted a new page that tests the speed and correctness of several pascal based JSON parsers. https://www.getlazarus.org/json/tests/ In full disclosure I am the author of the new open source JsonTools library, and even though my parser seems to a big improvement over the other alternatives, m