NOW LET US – AI RAG SaaS Studio TP.HCM
NOW LET US
Digital Product Studio
Back to news
DEV-TOOLS...1 min read

Linux extreme performance H1 load generator

Share
NOW LET US Article – Linux extreme performance H1 load generator

gcannon is a high-performance HTTP/1.1 and WebSocket load generator built on Linux io_uring, offering microsecond-resolution latency tracking and extreme throughput.

A high-performance HTTP/1.1 and WebSocket load generator built on Linux io_uring.

Official load generator for Http Arena

Requires Linux 6.1+, gcc, liburing-dev 2.5+

sudo apt install build-essential liburing-dev

git clone https://github.com/MDA2AV/gcannon.git && cd gcannon && make

The fastest HTTP load generator available. Built on io_uring's batched async I/O to maximize requests per second from a single machine.

Per-request latency tracking with microsecond-resolution histograms via CLOCK_MONOTONIC. Every response is recorded — percentiles are exact, not estimated.

Pass --tui for a rich terminal interface with live progress, throughput graph, and colored results.

During execution, the TUI displays a progress bar, real-time throughput stats, and a sparkline graph showing req/s over time. Updates every second.

Percentile latencies displayed in a clean box-drawn table with color coding: cyan for normal, yellow for p99, red for p99.9.

When using -r N, each connection closes and reconnects after N request/response pairs. The results show the total reconnect count and confirm that every response was latency-sampled.

The histogram automatically zooms into your data range. Bucket boundaries are computed from p0 to p99.9 of the actual latency distribution, divided into equal-width slices. Control granularity with -b.

Results are saved after every run to ~/.gcannon/history.bin (up to 100 runs). In TUI mode, bar graphs show req/s and avg latency trends across the last 10 runs. The current run is highlighted in green.

When using multiple --raw request files, pass --per-tpl-latency to track latency histograms per template. Each template gets its own percentile breakdown (avg, p50, p99, p99.9).

Machine-readable output for scripts, CI pipelines, and dashboards. Pass --json to get a single JSON object on stdout with no banner or progress output.

In WebSocket mode (--ws), additional ws_upgrades and ws_frames fields are included.

Latency numbers are only useful if they're measured correctly. Glass Cannon tracks per-request latency with microsecond resolution using a two-tier histogram.

All timestamps use the Linux kernel's CLOCK_MONOTONIC via clock_gettime(). On modern x86_64, this reads the TSC register via the kernel's vDSO, so it doesn't even require a syscall — it's a fast userspace read with nanosecond resolution.

The latency sample is recorded in a two-tier histogram. Tier 1 covers 0–10ms at 1μs resolution (10,000 buckets). Tier 2 covers 10ms–5s at 100μs resolution (49,900 buckets). This gives exact percentile calculations without storing individual samples or doing any heap allocation.

© 2026 Now Let Us. All rights reserved.

Source: Hacker News

Advertisement
Ad slot ready: 5887729102

More in this category

NOW LET US Related – Leaving Mozilla

dev-tools

Leaving Mozilla

A poignant and candid reflection from a 15-year Mozilla veteran upon their departure. The author highlights the leadership's missteps in trying to emulate tech giants and urges Mozilla to return to its core values: community and uniqueness.

NOW LET US Related – Shepherd's Dog: A Game by the Most Dangerous AI Model

dev-tools

Shepherd's Dog: A Game by the Most Dangerous AI Model

A developer tested Anthropic's latest, supposedly 'too dangerous' AI model by asking it to build a long-held game idea in a single shot. The model succeeded, generating a complete 2,319-line game after a 45-minute reasoning session.

NOW LET US Related – Open source AI must win

dev-tools

Open source AI must win

If artificial intelligence becomes a utility rented only from a few closed institutions, humanity loses its operational freedom. Open-source AI is a vital infrastructure for the future of our digital society.

NOW LET US Related – Statement on US government directive to suspend access to Fable 5 and Mythos 5

dev-tools

Statement on US government directive to suspend access to Fable 5 and Mythos 5

The US government has issued an export control directive forcing Anthropic to suspend all access to its Fable 5 and Mythos 5 models due to national security concerns, a move the AI safety startup strongly disputes.

NOW LET US Related – Electric motors with no rare earths

dev-tools

Electric motors with no rare earths

Renault Group is pioneering the development of electrically excited synchronous motors (EESM) that eliminate the need for rare earth magnets, reducing dependency on global monopolies while driving efficiency and sustainability.

NOW LET US Related – Swift at Apple: Migrating the TrueType hinting interpreter

dev-tools

Swift at Apple: Migrating the TrueType hinting interpreter

Apple has rewritten its TrueType hinting interpreter from C to memory-safe Swift for its Fall 2025 OS releases, improving security and boosting performance by an average of 13%.

EXPLORE TOPICS

Discover All Categories

Deep dive into the specific technology sectors that matter most to you.