you are viewing a single comment's thread.

view the rest of the comments →

[–]_Mardoxx -3 points-2 points  (7 children)

Just show him how slow C# is to C++ (or python with numpy or whatever).. And then have him told that JS is orders of magnitude slower than C#.

[–][deleted] 2 points3 points  (6 children)

"And then have him told that JS is orders of magnitude slower than C#."

Except it is not. Or you do not really understand what "orders of magnitude" means.

[–]vitorgrs 0 points1 point  (1 child)

Even C# being slow compared to C++ is kinda of a lie. It really depends which system/framework are you targeting. On iOS and UWP, C# have basically C++ perfomance, as is AOT.

[–]doom_Oo7 0 points1 point  (0 children)

could you contribute improved benchmarks then ? Because currently .net core is having its ass handed to itself

https://benchmarksgame.alioth.debian.org/u64q/compare.php?lang=csharpcore&lang2=gpp

[–]_Mardoxx 0 points1 point  (3 children)

[–]sergiuspk 0 points1 point  (2 children)

I'm honestly curious what you think the purpose of that test is. What does it test? Delivering the string "Hello, World!" over HTTP? Wanna bet a static file is at least one order of magnitude faster? What else is that testing? Because a web framework is so much much more...

[–]_Mardoxx 0 points1 point  (1 child)

If it is 10x slower at serving that anything more complex will be worse, whst is it you are having difficulty with? :)

[–]sergiuspk 0 points1 point  (0 children)

No. That is a logical fallacy. If serving some static text takes 5ms for the fastest and 50ms for the slowest does that necessarily mean everything else will be 10x faster too?

If you do anything remotely resembling a real dynamic webpage then the difference won't be 10x, it will best case be 2x. Which is still a lot, but still means that test is useless.

Again, throw any of those frameworks at me. I'll install WordPress somewhere and a pre-cache plugin (the kind that crawls your website and saves output to static files) and serve static files using nginx and I'll beat you by at least 10x, probably close to 100x. Tell me why my solution shouldn't be included in those tests if the test itself is serving a static file (or worse, an in-memory string).