3 ms·
>This kind of benchmark is completely useless. On the contrary, that's the only useful type of benchmark. I don't care for "load simulation" full benchmarks,
by coldtea 10y ago
>This kind of benchmark is completely useless.
On the contrary, that's the only useful type of benchmark.
I don't care for "load simulation" full benchmarks, with loads and usage patterns that will be invariably different than mine, and which tell me nothing much.
Microbenchmarks on the other hand, are constrained to very specific situations (like the above query), and as such can be very precise in the numbers they give.
I know that if I use a similar machine and Node version, and have the same query, I will get the same performance.
And that's exactly what programmers use to identify pain points ("hmm, this kind of response handling is slow") and fix it. Isolated and targeted microbenchmarks.
I don't care for a "full" benchmark to tell me that "things will slow down with business logic and DB queries". Well, DUH!
- xienze 10y ago> I don't care for a "full" benchmark to tell me that "things will slow down with business logic and DB queries". Well, DUH! Yes but you don't know exactly how much those things will differ between languages, which is important. For instance, you may say "wow, Node smokes Java in this echo server benchmark, I'm sold!", only to later find out that e.g., DB queries run 3x slower in Node than Java. Suddenly a more real-world benchmark makes sense...
- coldtea 10y ago>only to later find out that e.g., DB queries run 3x slower in Node than Java. Suddenly a more real-world benchmark makes sense No, then I just need an additional DB query microbenchmark.