Simple web server benchmark - vibe.d is slower than node.js and Go?

Daniel Kozak kozzi11 at gmail.com
Fri May 11 07:57:03 UTC 2018


On Friday, 11 May 2018 at 07:56:04 UTC, Daniel Kozak wrote:
> On Wednesday, 9 May 2018 at 22:37:22 UTC, Arun Chandrasekaran 
> wrote:
>> [...]
>
> I have change my example a little:
>
> case "/": res.writeBody("Hello World " ~ 
> to!string(thisThreadID), "text/plain");
>
> And I get this (siege -p -c15 0b -t 10s http://127.0.0.1:3000 | 
> grep World | sort | uniq):
>
> Hello World 140064214951680
> Hello World 140064223344384
> Hello World 140064231737088
> Hello World 140064240129792
> Hello World 140064248522496
> Hello World 140064256915200
>
> Si I get six different thread ids, which is OK because I have 6 
> cores

my dub.json:

{
	"name": "sbench",
	"authors": [
		"Daniel Kozak"
	],
	"dependencies": {
		"vibe-d": "~>0.8.4-beta.1",
		"vibe-d:tls": "0.8.4-beta.1",
		"vibe-core": "1.4.1-beta.2"
	},
	"subConfigurations": {
		"vibe-d:core": "vibe-core",
		"vibe-d:tls": "notls"
	},
	"description": "A simple vibe.d server application.",
	"copyright": "Copyright © 2018, Daniel Kozak",
	"license": "proprietary"
}


More information about the Digitalmars-d mailing list