NicolasJacob / benchmarks

Dart vs Node vs others (if time) benchmark.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

benchmark

A set of benchmark comparing dart/node performance

##Prerequisits

  • dart installed
  • node/npm installed
  • ab (sudo apt install apache2-utils)

##Installation

npm install
pub get

Running the benchmarks

dart bin/server.dart&
node bin/server.js&

#node
ab -n 10000 -c 100 http://localhost:1234/<benchmark name>
#dart
ab -n 10000 -c 100 http://localhost:8080/<benchmark name>

Benchmark description

mongo1

A small existing document is retrieved from a mongo collection and send.

mongo2

A bigger existing document is retrieved from a mongo collection and send.

TODO

  • Add benchmarks
  • Automate benchmarks run
  • Collect and produce reports, comparison charts.

About

Dart vs Node vs others (if time) benchmark.


Languages

Language:Dart 57.9%Language:JavaScript 42.1%