nodejs / benchmarking

Node.js Benchmarking Working Group
https://benchmarking.nodejs.org
161 stars 47 forks source link

Microbenchmarks #7

Open mhdawson opened 9 years ago

mhdawson commented 9 years ago

This issue is for discussion on the existing micro-benchmarks, what we do in order to improve and get the running again.

One suggestion so far is that we make sure they print and display time for single iteration (how many us to complete) were the time is both the wall time as well as the cycles used.

We also discussed coming up with a list of additional micro benchmarks that we might want to add

trevnorris commented 9 years ago

IMO the most reliable things to micro-benchmark are native calls (e.g. Buffer#slice()). Will definitely want to exclude micro calls (e.g. Buffer#writeUInt8()).

May want to consider implementing some for the complex JS paths (e.g. several streams paths).