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

Michael Van Canneyt michael at freepascal.org
Fri Aug 30 23:01:15 CEST 2019



On Fri, 30 Aug 2019, Anthony Walter via lazarus wrote:

> I am not sure how under any situation parsing a JSON from a stream source
> would be any faster than parsing a string.

If you would check the fpjson code, you'd see why.
You'd also see why there is plenty of room for improvement.

> Also with regards to timing I am
> not sure how accurate Now is. For this purpose I've written:

I agree that for time measurements of 10ms or less, you should not use Now
for measurements.

But over a total timespan of 2.9 seconds, now is plenty accurate.


Michael.


More information about the lazarus mailing list