September 23, 2019
On Monday, 23 September 2019 at 06:10:13 UTC, Daniel Kozak wrote:
> On Saturday, 21 September 2019 at 20:15:55 UTC, SrMordred wrote:
>> On Saturday, 21 September 2019 at 19:52:51 UTC, Daniel Kozak wrote:
>>> [...]
>>
>> What u mean by cheated?
>> They tweaked the code to perform better on the benchmarks?
>
> Sorry for using world cheat, what I really mean is tweaks. I mean things like this:
>
> https://github.com/TechEmpower/FrameworkBenchmarks/blob/dcbc03714d13aed9c179ed415fbd8fc9629fc6a5/frameworks/Rust/hyper/src/main.rs#L26
>
> https://github.com/TechEmpower/FrameworkBenchmarks/blob/dcbc03714d13aed9c179ed415fbd8fc9629fc6a5/frameworks/Rust/hyper/src/main.rs#L52
>
> https://github.com/TechEmpower/FrameworkBenchmarks/blob/dcbc03714d13aed9c179ed415fbd8fc9629fc6a5/frameworks/Rust/hyper/src/main.rs#L58
>
> I do not thing, that in normal user code one would use this tweaks, and D vibed code does not use them neither

Well this really looks like cheating :P

But its interesting that this lib has this possibility of fine tuning the server. We don´t have anything like this in D, right? (micro http server?)
September 23, 2019
On Monday, 23 September 2019 at 07:19:46 UTC, zoujiaqing wrote:
> On Saturday, 21 September 2019 at 19:23:42 UTC, SrMordred wrote:

> You can view latest test result:
>
> https://www.techempower.com/benchmarks/#section=test&runid=1580dba0-1ac1-4e3c-96f4-5747295d67a6&hw=ph&test=plaintext

Very interesting , it blast way over on this benchmark.
But it stays way behind on the others. Have an idea of why?

(btw, i´m experimenting with vibe.d now and pretend to explore hunt also :) )

October 02, 2019
On Monday, 23 September 2019 at 16:14:15 UTC, SrMordred wrote:
> On Monday, 23 September 2019 at 07:19:46 UTC, zoujiaqing wrote:
>> On Saturday, 21 September 2019 at 19:23:42 UTC, SrMordred wrote:
>
>> You can view latest test result:
>>
>> https://www.techempower.com/benchmarks/#section=test&runid=1580dba0-1ac1-4e3c-96f4-5747295d67a6&hw=ph&test=plaintext
>
> Very interesting , it blast way over on this benchmark.
> But it stays way behind on the others. Have an idea of why?
>
> (btw, i´m experimenting with vibe.d now and pretend to explore hunt also :) )

I'm not sure, but I guess:

* Rust's httparse crate uses AVX2 instruction if available, picohttpparser uses only SSE4.2 https://github.com/seanmonstar/httparse/pull/40

* Rust's hyper uses Date header cache mechanism https://github.com/hyperium/hyper/commit/bdd2e1a3adccfed54e2e9353c914b5fbaaf7b513, which I try to implement for vibe.d https://github.com/vibe-d/vibe.d/pull/2012
1 2
Next ›   Last »