The JS runtimes
Published in

The JS runtimes

Express vs Fastify: Hello world use case

Introduction

Test environment

const fastify = require("fastify")({ logger: false });

fastify.get("/", () => {
return "Hello world";
});

fastify.listen({ port: 3000 });
const express = require("express");
const app = express();
const port = 3000;

app.get("/", (req, res) => {
res.send("Hello World!");
});

app.listen(port);

Results

25 concurrent connections

100 concurrent connections

200 concurrent connections

Analysis

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store