REST API: Node vs Rust

Sean Wragg
Feb 7, 2017 · 4 min read

Rust (via Rocket)

rustc 1.17.0-nightly (ea7a6486a 2017-02-04)  
cargo-0.18.0-nightly (d710222 2017-02-04)

Node (via Restify)

node v6.9.5
npm 3.10.30

Developer Environment

Route Interface

Memory Consumption

Running Rust (Rocket), idle @ < 1MB
Running Node (restify), idle @ 19MB

Requests per Second

wrk -d1m http://localhost:8080/

wrk Benchmark Raw Results

Original AB Benchmark Raw Results


sean3z

Code, Comics, and Fhqwhgads!

Sean Wragg

Written by

Writing about code, comics, and fhqwhgads!

sean3z

sean3z

Code, Comics, and Fhqwhgads!