Hacker News new | ask | show | jobs
by blueveek 4690 days ago
These comparisons bring up memories of when we used to benchmark empty for loops. I think today’s microbenchmarks are starting to feel just like that.

Comparing the execution time of a hundred thousand (sync or not) callbacks vs. a hundred thousand (sync or not) promises is, in many cases, not a good or deciding factor for what tool you should pick from the toolbox. I would assert that in realistic scenarios, it really doesn't matter.

1 comments

To be clear, this is benchmarking a go-like channel abstraction, which is nicer than callbacks or promises imo, which is why it's nice to see it's performant.