Features
Docs
CLI
Benchmarks
Examples
GitHub

© 2024 MoroJs

Performance Benchmarks

Independent, verifiable performance testing using industry-standard tools. All benchmarks are reproducible and conducted with production configurations.

Clustering Mode

Maximum performance with clustering enabled and auto worker management.

Requests/sec136,937
Avg Latency6.81ms
Throughput80.6 MB/s
Peak Performance

• Multi-core utilization

• Auto worker scaling

• Load distribution

Standard Mode

Single process performance with production-ready configuration.

Requests/sec61,562
Avg Latency15.74ms
Throughput36.3 MB/s
Single Core

• Single process mode

• Minimal overhead

• Easy deployment

Industry Context

How MoroJS compares to other popular frameworks.

vs Fastify+195% faster
vs Express+400% faster
Cluster Boost+122% gain
Production Ready

• Measured with autocannon

• Same test conditions

• Reproducible results

Detailed Performance Metrics

Clustering Mode Statistics

Latency (ms)
Requests/Sec
50%: 6ms
50%: 137,983
97.5%: 13ms
97.5%: 139,519
99%: 14ms
Avg: 136,936.8
Avg: 6.81ms
Min: 115,972

Standard Mode Statistics

Latency (ms)
Requests/Sec
50%: 12ms
50%: 61,919
97.5%: 24ms
97.5%: 64,575
99%: 29ms
Avg: 61,562.4
Avg: 15.74ms
Min: 52,637

Testing Methodology

Tools & Environment

  • Autocannon (industry standard)
  • MacBook Studio M2 Ultra
  • Node.js v22.12.0
  • Production configuration

Test Parameters

  • 100 concurrent connections
  • 40 second duration
  • 10 pipelined requests
  • Multiple test runs

Clustering Mode

  • Auto worker management
  • CPU core utilization
  • Load balancing
  • Zero downtime scaling

Important Note

These are synthetic benchmarks designed to measure framework overhead. Real-world performance depends on your application logic, database queries, external API calls, and other factors. Always benchmark your specific use case.

Reproduce These Results

Standard Mode

# Clone and setup

git clone https://github.com/Moro-JS/benchmark.git

cd benchmark && npm install

npm install -g autocannon

# Start server and benchmark

npm run hello-world

autocannon -c 100 -d 40 -p 10 http://127.0.0.1:3111

Clustering Mode (Maximum Performance)

# Enable clustering in your MoroJS config

clustering: {

enabled: true,

workers: 'auto' // Uses all CPU cores

}

# Run the same benchmark

autocannon -c 100 -d 40 -p 10 http://127.0.0.1:3111