News for hackers. Stuff that matters.
Re:Actix Web: Optimization Amongst Optimizations by The_rationalist on Sunday January 05, 2020 @02:59PM (#21963624)
Beware, actix web has been caught cheating at this benchmarck.

Cf: https://64.github.io/actix/

Re:Actix Web: Optimization Amongst Optimizations by dpc_pw on Sunday January 05, 2020 @04:25PM (#21964225)
Can you point in more detail where was the cheating?

What you link to talks over the great `unsafe` drama, but that's not cheating. `unsafe` is in Rust for a good reason. Every C and C++ codebase is effectively one big `unsafe` block from the perspective of Rust developer, and we don't think C/C++ are cheating. Rust devs frown upon overusing `usafe` for a good reason: it leads to obscure bugs and security issues. But if you use it correctly, in place that is critical for your performance - go for it.

Having said that - a lot of frameworks in that benchmark are over-optimizing in ways that no real practical app would do and arguably are cheating.If there's anything in particular about actix here, please let me know - I'm honestly interested in it.

Re:Actix Web: Optimization Amongst Optimizations by mwcampbell on Sunday January 05, 2020 @04:45PM (#21964356)
The post linked in the GP discusses cheating in this section: https://64.github.io/actix/#blazingly-fast-or-not

Note that this is for the "raw" version of the plain-text and JSON benchmarks, not the fortune benchmark covered in the OP. But I wonder why that raw version is even there. It certainly isn't "realistic", as it claims to be in benchmark_config.json

Re:Actix Web: Optimization Amongst Optimizations by gpm on Sunday January 05, 2020 @08:28PM (#21965686)
Also from that section

> In fairness, it seems other benchmarks are doing these things

Personally, I think it's pretty reasonable to sink to the same level as the competition.