Benchmark Dlang vs Node vs Ruby
Daniel Kozak via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 27 07:48:19 PDT 2016
On Friday, 27 May 2016 at 14:18:31 UTC, llaine wrote:
> On Friday, 27 May 2016 at 14:17:16 UTC, Adam D. Ruppe wrote:
>> On Friday, 27 May 2016 at 13:45:23 UTC, llaine wrote:
>>> I am doing something wrong ?
>>
>> So, the benchmark, the Ruby, and the JS all use the path to be
>> /.... the D seems to use /companies (though I don't know
>> vibe). Is that right?
>
> Yes it's that i'm routing to /companies to get the result, but
> let me change the psql library delete this routing and trying
> again.
Yous should enable
http://vibed.org/api/vibe.http.server/HTTPServerOption.distribute
something like this:
auto settings = new HTTPServerSettings;
settings.port = 8080;
settings.options |= HTTPServerOption.distribute;
listenHTTP(settings, router);
More information about the Digitalmars-d-learn
mailing list