4 ms·
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. Comparin
by blueveek 13y 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.
- cgag 13y agoTo 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.