May 27, 2016
On Friday, 27 May 2016 at 15:32:13 UTC, yawniek wrote:
> On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote:
>> Hi guys,
>>
>> In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra.
>>
>> And the results are pretty surprising.
>> I have to admit that I though D was more faster than that. How is this even possible ?
>>
>> I am doing something wrong ?
>>
>>
>> Here are the numbers with the project :
>>
>> https://github.com/llaine/benchmarks/blob/master/README.md
>
> you should:
> - use this https://github.com/etcimon/ddb  Postgres client
> - fix your logic
> - NOT use option distribute
> - use LDC2 beta2 as compiler with release flag
> - use neweset vibe.d version
>
> and then your results should be easily above 1000 rps

Okay by just fixing my logic, I go up to 839.42 Req/Sec for 10 sec and 601.74 Req/Sec for 30sec which is pretty impressive!

My other question here is, can I specify directly in dub the compiler I want to use? Something like this :

dub -compiler=ldc|dmd ...

Because I really want to try to reach 1000rps


May 27, 2016
On Friday, 27 May 2016 at 15:48:18 UTC, llaine wrote:
> On Friday, 27 May 2016 at 15:32:13 UTC, yawniek wrote:
>> On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote:
>>> [...]
>>
>> you should:
>> - use this https://github.com/etcimon/ddb  Postgres client
>> - fix your logic
>> - NOT use option distribute
>> - use LDC2 beta2 as compiler with release flag
>> - use neweset vibe.d version
>>
>> and then your results should be easily above 1000 rps
>
> Okay by just fixing my logic, I go up to 839.42 Req/Sec for 10 sec and 601.74 Req/Sec for 30sec which is pretty impressive!
>
> My other question here is, can I specify directly in dub the compiler I want to use? Something like this :
>
> dub -compiler=ldc|dmd ...
>
> Because I really want to try to reach 1000rps

I've update my SQL dump with 100 entries and now and I have better results!
Pretty amazing :)

If you guys want to improve it feel free to PR !!!
May 27, 2016
Why not to use distribute oprion?
Dne 27. 5. 2016 17:35 napsal uživatel "yawniek via Digitalmars-d-learn" <
digitalmars-d-learn@puremagic.com>:

> On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote:
>
>> Hi guys,
>>
>> In my journey of learning about D I tried to benchmark D with Vibe.d vs node with express and Ruby with Sinatra.
>>
>> And the results are pretty surprising.
>> I have to admit that I though D was more faster than that. How is this
>> even possible ?
>>
>> I am doing something wrong ?
>>
>>
>> Here are the numbers with the project :
>>
>> https://github.com/llaine/benchmarks/blob/master/README.md
>>
>
> you should:
> - use this https://github.com/etcimon/ddb  Postgres client
> - fix your logic
> - NOT use option distribute
> - use LDC2 beta2 as compiler with release flag
> - use neweset vibe.d version
>
> and then your results should be easily above 1000 rps
>
>
>


May 28, 2016
On Friday, 27 May 2016 at 16:47:19 UTC, Daniel Kozak wrote:
> Why not to use distribute oprion?
> Dne 27. 5. 2016 17:35 napsal uživatel "yawniek via Digitalmars-d-learn" <
> digitalmars-d-learn@puremagic.com>:

it its a flawed strategy.
what you should do is let the kernel handle it and use SO_ REUSEPORT
libasync supports it.

see e.g. https://github.com/rejectedsoftware/vibe.d/issues/1139
and https://lwn.net/Articles/542629/
1 2 3
Next ›   Last »