Core: Slow performance

Created on 14 Feb 2018  路  13Comments  路  Source: adonisjs/core

This is really a helpful framework. But when I compared the benchmark report against other frameworks, I found that adonis is not performing well.

https://github.com/PlainSight/NodeRestPerfTest3

Result

Requests per second:    10526.97 [#/sec] (mean)
raw_node
Requests per second:    17931.46 [#/sec] (mean)
restify
Requests per second:    11835.28 [#/sec] (mean)
koa2
Requests per second:    13180.16 [#/sec] (mean)
fastify
Requests per second:    15888.34 [#/sec] (mean)
total.js
Requests per second:    14446.93 [#/sec] (mean)
sails.js
Requests per second:    2016.40 [#/sec] (mean)
adonis.js
Requests per second:    4063.64 [#/sec] (mean)

I'm running tests on Ubuntu 17.10, 16gb RAM, node 9.5

Most helpful comment

Thanks. This time I have --api-only flag to create the repo. And used new route. New score is;

Requests per second: 6475.26 [#/sec] (mean)

All 13 comments

U r benchmarking a way older version of AdonisJs

I have reinstalled adonis and it's cli to latest. But unfortunately got Requests per second: 1302.72 [#/sec] (mean) for the same tests.

How did you installed the cli?

I installed https://www.npmjs.com/package/@adonisjs/cli

sudo npm i --global @adonisjs/cli

Then please create a slim app using the cli and share a repo with benchmarks

Here is the forked and updated repo

https://github.com/amitguptagwl/NodeRestPerfTest3

The repo still has the old code

Thanks. This time I have --api-only flag to create the repo. And used new route. New score is;

Requests per second: 6475.26 [#/sec] (mean)

You must use the --slim flag if you want to have a realistic comparison between other frameworks. You are still currently comparing orange to apple. 馃槈

Whatever, I believe this https://github.com/adonisjs/adonis-framework/issues/586 and this https://hueniverse.com/when-500-faster-is-garbage-553121a088c3 should be read.

I completely agree that if you are providing some features, it'll impact the speed somewhere. and performance doesn't mean speed only.

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Extarys picture Extarys  路  4Comments

PC-HUB picture PC-HUB  路  4Comments

imperez picture imperez  路  4Comments

devcaststudio picture devcaststudio  路  3Comments

seanc picture seanc  路  4Comments