News for hackers. Stuff that matters.
Re:How Raygun increased throughput 20x with .NET Core over N... by rubber_duck on Thursday May 25, 2017 @09:51AM (#14417263)
Actually 3rd party libraries and application code is where .NET is likely to be faster unless node lib is wrapping a C library - .NET can easily beat JS an order of magnitude simply by having control of memory layouts and high performance/specialized data structures. Meanwhile JS has crap structures (doesn't even have primitive arrays) and everything is it's dynamic object where you pray the JIT eventually figures out a constant structure and tries to optimize.
Re:How Raygun increased throughput 20x with .NET Core over N... by Klathmon on Thursday May 25, 2017 @10:13AM (#14417405)
Just to nitpick a bit, JS does have primitive arrays using TypedArray.
Re:How Raygun increased throughput 20x with .NET Core over N... by rubber_duck on Thursday May 25, 2017 @10:38AM (#14417572)
This is a good point - it's also why you can still optimize JS on microbenchmarks but for real world code where you'd want to use an array of structs in say C# for eg. there's just no JS equivalent other than write obfuscated stuff around typed arrays.
Re:How Raygun increased throughput 20x with .NET Core over N... by UK-AL on Thursday May 25, 2017 @09:53AM (#14417282)
Yes, but if your going to compare(Badly in this case). You probably want to test it in isolation.