Benchmark Dlang vs Node vs Ruby
llaine via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Fri May 27 07:58:57 PDT 2016
On Friday, 27 May 2016 at 14:48:19 UTC, Daniel Kozak wrote:
> 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);
Hi,
With this option I get the same results but something interesting
is displayed on the binary output :
core.exception.InvalidMemoryOperationError at src/core/exception.d(693): Invalid memory operation
The code :
https://github.com/llaine/benchmarks/blob/master/vibed/source/app.d
More information about the Digitalmars-d-learn
mailing list