---
title: Surge — Lightning-fast, concurrent HTTP load testing tool in Go with CI
  quality gates — by Jad Madi (@jadmadi)
description: High-performance concurrent HTTP load testing CLI built in Go.
  Measures latency percentiles (p50, p90, p95, p99), ships real-user traffic
  presets (baseline, realistic, capacity, spike), provides automated health
  verdicts, and emits structured JSON for CI/CD gates.
href: /project/surge/
author: Jad Madi
category: Developer Tools & Infrastructure
domain: Developer Tools & Infrastructure
status: Active
license: AGPL-3.0
year: "2026"
version: 0.1.0
---

# Surge — Lightning-fast, concurrent HTTP load testing tool in Go with CI quality gates

High-performance concurrent HTTP load testing CLI built in Go. Measures latency percentiles (p50, p90, p95, p99), ships real-user traffic presets (baseline, realistic, capacity, spike), provides automated health verdicts, and emits structured JSON for CI/CD gates.

## Project Overview

- **Website**: https://jadmadi.net/project/surge/
- **Version**: 0.1.0
- **Live Platform**: https://jadmadi.net/project/surge
- **Repository**: https://github.com/jadmadi/surge
- **Documentation**: https://github.com/jadmadi/surge/blob/main/README.md
- **Package**: https://pkg.go.dev/github.com/jadmadi/surge
- **Domain**: Developer Tools & Infrastructure
- **Category**: Developer Tools & Infrastructure
- **Status**: Active
- **Year**: 2026
- **License**: AGPL-3.0 (copyleft)
- **Author**: [@JadMadi](https://x.com/jadmadi)

## Quick Install & Run

### Linux & macOS

```bash
curl -fsSL https://raw.githubusercontent.com/jadmadi/surge/main/install | bash
```

## The Problem It Solves

Existing load testing tools are either bloated enterprise suites or bare-bones curl loops that lack actionable tail-latency percentiles, automated health verdicts, and easily scriptable CI pipeline assertions.

## The Solution

A single static Go binary providing accurate percentile calculations, ramp-up schedules, think-time modeling, and structured JSON output for strict pipeline thresholds.

## Key Features & Capabilities

- Calculates min, p25, p50, p75, p90, p95, p99, and max latency percentiles with histogram distributions
- Four built-in workload presets: baseline, realistic, capacity, and spike testing
- Automated diagnostic health verdicts: Excellent, Good, Fair, Poor with actionable remediation guidance
- CI/CD quality gates via --fail-threshold error budgeting and machine-readable JSON output (-o json)
- Traffic shaping with concurrency ramp-up curves (--ramp-up) and user think-time simulation (--think-time)
- Throughput throttling via aggregate requests per second rate limiting (-rps)
- Detailed classification of network failure modes (DNS, TLS handshake, connection resets, timeouts)
- Custom HTTP headers (-H) with @file support, request bodies (-body), and automatic HTTPS for bare domains
- Single static Go binary (~2 MB) with zero runtime dependencies cross-compiled for Linux, macOS, and Windows

## Technical Specifications & Architecture

- **Languages**: Go
- **Frameworks / Libraries**: net/http
- **Architecture**: Goroutine worker pools, zero-allocation latency buckets, lock-free histogram metrics
- **License Model**: AGPL-3.0

## Frequently Asked Questions

### How do I install Surge?

Run `curl -fsSL https://raw.githubusercontent.com/jadmadi/surge/main/install | bash` on Linux and macOS, or `go install github.com/jadmadi/surge@latest` if you have Go installed.

### Can I use Surge as a quality gate in CI/CD pipelines?

Yes. Use `-o json` to assert metrics in pipeline scripts (e.g. with `jq`), or pass `--fail-threshold <pct>` to exit with status code 1 when the error rate exceeds your threshold.

### How do presets work in Surge?

Presets provide battle-tested traffic models (`baseline`, `realistic`, `capacity`, `spike`). You can invoke them directly (e.g. `surge realistic https://example.com`) and override any specific flag like `-c` or `-d`.

### How do I pass custom headers or authorization tokens?

Pass custom headers with `-H 'Authorization: Bearer <token>'` (repeatable), or read long tokens directly from disk using `-H @/path/to/token.txt`.

## Links & References

- Project Page on Crosscurrent Code: https://jadmadi.net/project/surge/
- Full Projects Directory: https://jadmadi.net/projects/
- Author Profile: https://jadmadi.net/about/
