RafaelGSS / nodejs-bench-operations

Is X faster than Y in Node.js vX.Z?
269 stars 20 forks source link

extra bench operations to consider #37

Open AVVS opened 1 year ago

AVVS commented 1 year ago

Hi @RafaelGSS, do you think it might be useful to have Buffer.from / Buffer.toString() / string_decoder / TextDecoder / TextEncoder be present here - these are quite common operations and tracking improvements / regressions might be beneficial

RafaelGSS commented 1 year ago

Sure. We just need to make sure to compare operations instead of APIs. For instance, comparing Buffer.from() vs new Buffer() should be acceptable. But comparing Buffer.from(shortString) with Buffer.from(longString) should be Node.js internal benchmark responsibility.

Feel free to send a PR.