From 7771461a93f993425f97d4e05c91e64d17179e60 Mon Sep 17 00:00:00 2001 From: eunhhu Date: Sat, 26 Sep 2026 05:40:20 +0100 Subject: Serve modules over persistent connections pure-serve replaces the module mode of server.c, which goes back to what it was. It keeps the document contract, the runtime core (a work slot per connection, the payload budget, core-owned ingress, borrowed PUT replies) and the group commits, and adds what server.c lacked: HTTP/1.1 persistent connections with in-order pipelining, an edge-triggered epoll owner thread, up to 1,024 connections allocated as they arrive and reused, one writev per answer, and documents opened through a store handle. On the Pi 5 with one thread it serves 106k small keep-alive reads per second (axum on three cores: 126k) at the same p99, 1,741 1 MiB reads (axum: 1,370), and 1,126 durable writes from 64 connections (crash-safe axum: 372), in 7.3 MiB against axum's 17-20 MiB. Note 075 has the table. --- benchmarks/http/run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'benchmarks/http/run.py') diff --git a/benchmarks/http/run.py b/benchmarks/http/run.py index 8202440..96f4bc0 100644 --- a/benchmarks/http/run.py +++ b/benchmarks/http/run.py @@ -70,8 +70,8 @@ def main(): servers = { 'pure-program': lambda d: [PURE / 'build/tree/pure-connections', '--program', PURE / 'examples/editor.pure', '--store', d, '--port', '0', '--budget', str(args.budget)], - 'pure-module': lambda d: [PURE / 'build/pure-connections-module', '--module', args.module, '--store', d, - '--port', '0', '--budget', str(args.budget)], + 'pure-serve': lambda d: [PURE / 'build/pure-serve', '--module', args.module, '--store', d, '--port', '0', + '--budget', str(args.budget)], 'axum-memory': lambda d: [axum, '--port', '0'], 'axum-durable': lambda d: [axum, '--port', '0', '--durable', d], 'axum-atomic': lambda d: [axum, '--port', '0', '--atomic', d], -- cgit v1.2.3