Skip to content

Add apex-tuned framework entry (C23) - #1785

Open
xdearboy wants to merge 2 commits into
MDA2AV:mainfrom
xdearboy:add-apex-tuned
Open

xdearboy wants to merge 2 commits into
MDA2AV:mainfrom
xdearboy:add-apex-tuned

Conversation

@xdearboy

Copy link
Copy Markdown

Description

Add apex-tuned HTTP framework entry in C23 targeting the HTTP/1.1 composite benchmark suite.

Architecture

  • Runtime: Thread-per-core shared-nothing epoll event loop with CPU affinity pinning and SO_REUSEPORT listeners on :8080 (HTTP) and :8081 (TLS).
  • Zero-allocation path: Slab connection buffers and request context recycling, avoiding heap allocations in the hot request/response path.
  • Parser: Streaming state-machine HTTP/1.1 parser resilient to byte-level TCP fragmentation, pipelining, chunked transfer decoding, and lowercase header forms.
  • Routing & Middleware: Pattern-matching router with route parameter extraction (:ms, :count) and query slicing, alongside a composable middleware chain.
  • Compression: Brotli and gzip compression using pre-allocated worker compression contexts.
  • TLS: OpenSSL 3 TLS 1.3 server with session caching and zero-copy body echoing on :8081.

Endpoints Implemented

  • GET /baseline11?a=X&b=Y: Query sum
  • POST /baseline11?a=X&b=Y: Query and body sum (supports Content-Length and chunked)
  • GET /pipeline: Pipelining verification
  • GET /delay/:ms: Non-blocking timer delay
  • GET /json/:count?m=N: JSON transform with gzip/brotli negotiation
  • POST /echo: TLS body echo on port 8081
  • GET /static/*: Static files from /data/static with twin .br/.gz resolution

Validation

Verified locally with ./scripts/validate.sh apex-tuned:

  • 70 passed, 0 failed
  • Anti-cheat randomized query/body assertions: passed
  • TCP byte-by-byte fragmentation across 1,047 splits: passed
  • Concurrency and pipelining checks: passed
  • TLS ALPN http/1.1 and certificate checks: passed
  • Static file delivery and twin pre-compressed sibling negotiation: passed

@xdearboy

Copy link
Copy Markdown
Author

/benchmark -f apex-tuned --save

@github-actions

Copy link
Copy Markdown
Contributor

👋 Benchmark request received. A collaborator will review and approve the run.

@MDA2AV

MDA2AV commented Nov 14, 2026

Copy link
Copy Markdown
Owner

please set type to "engine"

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants