eggjs / benchmark Licence: other
benchmark for egg
Programming Languages javascript 184084 projects - #8 most used programming language
Projects that are alternatives of or similar to benchmark Cool Admin Api cool-admin-api 是基于egg.js、typeorm、jwt等封装的api开发脚手架、快速开发api接口
Stars : ✭ 188 (+889.47%)
Mutual labels: egg
egg-view-assets Manage frontend assets in development and production.
Stars : ✭ 51 (+168.42%)
Mutual labels: egg
chat-webapp 一个基于eggjs与react全家桶的移动端webapp
Stars : ✭ 21 (+10.53%)
Mutual labels: egg
Egg Security Security plugin for egg, force performance too.
Stars : ✭ 204 (+973.68%)
Mutual labels: egg
xiaomishop 基于nodejs web框架egg.js+mongoose实现的仿小米商城的项目
Stars : ✭ 26 (+36.84%)
Mutual labels: egg
m-server egg.js简单应用
Stars : ✭ 35 (+84.21%)
Mutual labels: egg
Egg Oauth2 Server 🌟 OAuth2 server plugin for egg.js based on node-oauth2-server
Stars : ✭ 174 (+815.79%)
Mutual labels: egg
egg-aop AOP plugin for eggjs, add DI, AOP support.
Stars : ✭ 44 (+131.58%)
Mutual labels: egg
egg-rbac Role Based Access Control for eggjs
Stars : ✭ 32 (+68.42%)
Mutual labels: egg
Egg Socket.io socket.io plugin for eggjs.
Stars : ✭ 209 (+1000%)
Mutual labels: egg
Egg Redis redis plugin for egg
Stars : ✭ 234 (+1131.58%)
Mutual labels: egg
egg-kafka-node kafka plugin for egg.js
Stars : ✭ 36 (+89.47%)
Mutual labels: egg
Egg Core A core Pluggable framework based on koa.
Stars : ✭ 194 (+921.05%)
Mutual labels: egg
egg-grpc grpc plugin for egg
Stars : ✭ 79 (+315.79%)
Mutual labels: egg
Egg Cluster cluster manager for egg
Stars : ✭ 186 (+878.95%)
Mutual labels: egg
create-egg so you could use `npm init egg showcase` to init egg project
Stars : ✭ 28 (+47.37%)
Mutual labels: egg
AntEggBlogService 🔥egg、mongodb、restful api、jwt
Stars : ✭ 21 (+10.53%)
Mutual labels: egg
egg-sentry Sentry Plugin For Egg.js
Stars : ✭ 18 (-5.26%)
Mutual labels: egg
egg-exporter Egg.js 的 Prometheus 指标收集插件,附带 Grafana 看板。
Stars : ✭ 24 (+26.32%)
Mutual labels: egg
benchmark
egg benchmark
Commands
npm test
to run all the benchmarks and store the results in stats.csv
(requires wrk
), also you can open plot/index.html
to see the results
./plot.sh
to compare performance between the latest releases of Node.js v7.x, v8.x, rc, nightly and v8-canary (requires wrk
and nvm
), then open plot/index.html
to see the results
Requires AJAX privilege to load data from plot/all.csv
, you can run python -m SimpleHTTPServer
then visit http://localhost:8000/plot/
(or use any other static server) if you don't want to tweak browser settings
Default Middleware
egg default enable 15 middlewares (6 security middlewares enable by default)
enable router
passport has 17 middlewares (15 default, 2 passport middlewares)
csrf are disabled, because in most situation we won't caculate csrf token and set to cookie
Scenes
Hello World: $ EGG_SERVER_ENV=prod node benchmarks/simple/dispatch.js
nunjucks: $ EGG_SERVER_ENV=prod node benchmarks/simple_view/dispatch.js
Empty passport: $ EGG_SERVER_ENV=prod node benchmarks/simple_passport/dispatch.js
Scripts
koa1: wrk http://127.0.0.1:7001/ -d 10 -c 50 -t 8
koa2: wrk http://127.0.0.1:7002/ -d 10 -c 50 -t 8
egg1: wrk http://127.0.0.1:7003/ -d 10 -c 50 -t 8
egg2: wrk http://127.0.0.1:7004/ -d 10 -c 50 -t 8
Server
MacBook Pro (Retina, 15-inch, Late 2013)
2 GHz Intel Core i7 (only use 4 core for benchmark)
CPU Profiler
Known issues
Date.now()
cost a lot of CPU time(7%) in meta
middleware and CreateContext
method.
Last Results
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at
[email protected] .