web-tooling-benchmark icon indicating copy to clipboard operation
web-tooling-benchmark copied to clipboard

Add Mocha benchmark

Open mathiasbynens opened this issue 5 years ago • 3 comments

Specifically, Mocha seems to perform lots of operations like Array#includes and Array#indexOf on frozen arrays while setting up its environment and executing its tests.

It would be good to have this pattern reflected in the WTB.

Ref. https://docs.google.com/document/d/1X6zO5F_Zojizn2dmo_ftaOWsY8NltPHUhudBbUzMxnc/edit.

mathiasbynens avatar Feb 25 '19 07:02 mathiasbynens

@mathiasbynens Are you looking to solve this by adding a specific Mocha benchmark (as the title says) or would you accept a more focused benchmark (derived from Mocha's actions) that specifically targeted operations on frozen arrays?

robpalme avatar Feb 25 '19 11:02 robpalme

Ideally, we'd add a benchmark that exercises the relevant parts of Mocha.

We're specifically not looking for microbenchmarks (since those don't reflect real-world performance).

mathiasbynens avatar Feb 25 '19 12:02 mathiasbynens

@mathiasbynens We have two volunteers (Damola and Yilang) that want to pair on this. Will be in touch for next steps.

robpalme avatar Feb 27 '19 11:02 robpalme