-
Notifications
You must be signed in to change notification settings - Fork 263
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PHPLIB-1183: Add benchmarks for codecs #1146
PHPLIB-1183: Add benchmarks for codecs #1146
Conversation
Very nice to see that Sharing the results for posterity.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after CS fixes.
759b6c1
to
1145036
Compare
1145036
to
950546b
Compare
I updated the data set to read |
|
PHPLIB-1183
The new benchmarks test the overhead of using a codec. They intentionally only pass through the Document in question or convert it to a PHP structure via
toPHP
so they remain comparable to the benchmarks that do this directly.I also added another benchmark for BSON conversion using iteration, which will perform much better with the internal iterator made in PHPC-2269.