parsica-php / parsica

Parsica - PHP Parser Combinators - The easiest way to build robust parsers.
https://parsica-php.github.io/
MIT License
405 stars 18 forks source link

bench: use more iterations/revisions for the native json_encode baseline #47

Closed staabm closed 3 years ago

staabm commented 3 years ago

The function call is very very fast and very little differences will have a large effect on rel. comparision to parsica. Try to make it more stable.

Motivation: in https://github.com/parsica-php/parsica/pull/45#issue-602130996 the benchmark went from 12.533μs (before-mean) to 13.333μs (after-mean) which is a diff of ~ 10% without other modifications

turanct commented 3 years ago

Merged this squashed with a change that also does this to the other JSON Bench methods. thanks! 🙇