Skip to content

Node-RED Flow Benchmark

Measures throughput and latency of Node-RED flows under varying load conditions. Currently benchmarks image processing pipelines, with plans to cover additional flow types.

Key Features

  • Automatic throughput discovery with saturation detection and binary search for exact limits
  • Tests across image sizes, processing modes, injection frequencies, and image counts per cycle
  • Repeats each test 3 times and uses the median for stable results
  • Resumes interrupted runs by skipping already-completed combinations
  • Configurable Node-RED endpoint via environment variable

Quick Start

bash
npm install
npm run bench:image-saving

Or with a custom Node-RED URL:

bash
NR_URL=http://192.168.1.10:1880/nodered npm run bench:image-saving

Results are saved to results/benchmark.json.

Documentation