Re: HTTP frameworks benchmark focused on D libraries

2020-09-21 Thread James Blachly via Digitalmars-d-announce

On 9/20/20 4:03 PM, tchaloupka wrote:

Hi,
as it pops up now and then (last one in 
https://forum.dlang.org/thread/qttjlgxjmrzzuflrj...@forum.dlang.org) I 
wanted to see the various D libraries performance against each other too 
and ended up with https://github.com/tchaloupka/httpbench


It's just a simple plaintext response testing (nothing fancy as in 
Techempower) but this interests me the most as it gives the idea about 
the potential of the library.


More details in the README.

Hope it helps to test some ideas or improve the current solutions.

Tom


Thank you for doing this!

One of the most fascinating things I think is how photon really shines 
when concurrency gets dialed up. With 8 workers, it performs about as 
well, but below, the rest of the micro, including below Rust and Go 
/platforms/.


However, at 64 concurrent workers, photon rises to the top of the stack, 
performing about as well as eventcore and hunt. When going all the way 
up to 256, it was the only one that demonstrated **consistent 
performance** -- about the same as w/64, whereas ALL others dropped off, 
performing WORSE with 256 workers.




Re: HTTP frameworks benchmark focused on D libraries

2020-09-21 Thread ikod via Digitalmars-d-announce

On Sunday, 20 September 2020 at 20:03:27 UTC, tchaloupka wrote:

Hi,
as it pops up now and then (last one in 
https://forum.dlang.org/thread/qttjlgxjmrzzuflrj...@forum.dlang.org) I wanted to see the various D libraries performance against each other too and ended up with https://github.com/tchaloupka/httpbench


It's just a simple plaintext response testing (nothing fancy as 
in Techempower) but this interests me the most as it gives the 
idea about the potential of the library.


More details in the README.

Hope it helps to test some ideas or improve the current 
solutions.


Tom


thanks! Very good news.


Re: DIP 1030-- Named Arguments--Formal Assessment

2020-09-21 Thread aberba via Digitalmars-d-announce
On Monday, 21 September 2020 at 09:07:39 UTC, Martin Tschierschke 
wrote:
On Thursday, 17 September 2020 at 12:59:05 UTC, Mike Parker 
wrote:
On Thursday, 17 September 2020 at 12:58:06 UTC, Mike Parker 
wrote:

DIP 1030, "Named Arguments", has been accepted.



https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1030.md


I am happy with that, too. So what is the estimated time frame 
for getting it in dmd?


Good question :)


Re: HTTP frameworks benchmark focused on D libraries

2020-09-21 Thread tchaloupka via Digitalmars-d-announce

On Monday, 21 September 2020 at 05:48:54 UTC, Imperatorn wrote:

On Sunday, 20 September 2020 at 20:03:27 UTC, tchaloupka wrote:

Hi,
as it pops up now and then (last one in 
https://forum.dlang.org/thread/qttjlgxjmrzzuflrj...@forum.dlang.org) I wanted to see the various D libraries performance against each other too and ended up with https://github.com/tchaloupka/httpbench


It's just a simple plaintext response testing (nothing fancy 
as in Techempower) but this interests me the most as it gives 
the idea about the potential of the library.


More details in the README.

Hope it helps to test some ideas or improve the current 
solutions.


Tom


Cool! Nice to see such good results for D. Did you try netcore 
3.1 btw? 🤔


There's really no reason for D to by any slower than others. It's 
just about the whole library package and how efficiently it's 
written.


Eventcore is probably closest to the system and all above just 
adds more overhead.


I've tried to run .Net core out of docker (I'm using podman 
actually) and it seems to be more performant than .Net Core 5. 
But it was out of the container so maybe it's just that.


I've added switches to CLI to set some load generator parameters 
so we can test scaling easier.


Thanks to Adam I've also pushed tests for arsd:cgi package. It's 
in it's own category as others are using async I/O loops. But 
everything has it's pros and cons.


Re: DIP 1030-- Named Arguments--Formal Assessment

2020-09-21 Thread Martin Tschierschke via Digitalmars-d-announce

On Thursday, 17 September 2020 at 12:59:05 UTC, Mike Parker wrote:
On Thursday, 17 September 2020 at 12:58:06 UTC, Mike Parker 
wrote:

DIP 1030, "Named Arguments", has been accepted.



https://github.com/dlang/DIPs/blob/master/DIPs/accepted/DIP1030.md


I am happy with that, too. So what is the estimated time frame 
for getting it in dmd?