Skip to content
rustle

rustle against Squid

Same machines, same rules, one core each. rustle is first in 41 of 41 tests of the campaign; 31 of them run on both proxies, with the conditions next to every number.

1 core per proxy · authentication on · Scaleway Elastic Metal, Paris, AMD EPYC 8224P · 25 Gbit/s private network (23.5 measured) · median of 3 runs · seed 2004113323 · campaign of 2026-10-28.

The short version

rustle had the better value in 31 of the 31 tests where both it and Squid ran. Squid was not ahead in any of them. In this campaign Squid has no HTTP/2 to clients, so the tests that need them are not in the tables. Every value is a median of 3 runs, with the exact figures in the tables below.

What each one supports

Protocols supported by rustle and Squid
ProtocolrustleSquid
HTTP proxy and CONNECT tunnelsYesYes
HTTPS proxy port (TLS)YesYes
HTTP/2 to clientsYesNo
WebSocket upgradesYesYes

As built and configured in the campaign, see “How Squid was run” below.

Test by test

Best clean concurrency level of each proxy. The last column is the ratio of rustle’s figure to Squid’s: how many times more or less. For memory and CPU, less is better.

Plain HTTP proxy port

Plain HTTP proxy port: rustle against Squid
TestrustleSquidRatio
HTTP, 1 KB responsesreq/s55,25815,1403.6× more
HTTP, 10 KB responsesreq/s40,78310,8143.8× more
HTTP, 1 KB responses, a new connection per requestreq/s27,8277,8043.6× more
HTTP, 1 MB responsesreq/s2,6243537.4× more
HTTP, 10 MB responsesreq/s268338.1× more
CONNECT tunnels, bulk transferGbit/s22.013.61.6× more
CPU cost per request (1 KB)µs/req18.166.03.6× less
Memory with 1,000 open tunnelsMB1415011× less
Memory with 5,000 open tunnelsMB402756.8× less
Memory with 10,000 open tunnelsMB544328.0× less
Memory with 25,000 open tunnelsMB959129.6× less

HTTPS proxy (resumed TLS sessions)

HTTPS proxy (resumed TLS sessions): rustle against Squid
TestrustleSquidRatio
HTTP, 1 KB responsesreq/s49,46113,5093.7× more
HTTP, 10 KB responsesreq/s35,4609,3413.8× more
HTTP, 1 KB responses, a new connection per requestreq/s6,1192,0473.0× more
HTTP, 1 MB responsesreq/s1,2972774.7× more
HTTP, 10 MB responsesreq/s142275.2× more
CONNECT tunnels, bulk transferGbit/s12.04.92.5× more
Memory with 1,000 open tunnelsMB571813.2× less
Memory with 5,000 open tunnelsMB2534321.7× less
Memory with 10,000 open tunnelsMB4667601.6× less
Memory with 25,000 open tunnelsMB8102,5843.2× less

HTTPS proxy, full handshake on every connection

HTTPS proxy, full handshake on every connection: rustle against Squid
TestrustleSquidRatio
HTTP, 1 KB responses, a new connection per request, full handshakereq/s5,4581,9222.8× more

WebSocket, plain

WebSocket, plain: rustle against Squid
TestrustleSquidRatio
WebSocket, 64-byte messagesmsg/s58,50643,7101.3× more
WebSocket round trip, 64-byte messages (p99)ms1.31.51.2× less
CPU cost per WebSocket messageµs/msg17.122.91.3× less
WebSocket, 64 KB messagesGbit/s11.66.61.8× more
WebSocket, one connection per exchangemsg/s10,7404,8792.2× more

WebSocket over TLS

WebSocket over TLS: rustle against Squid
TestrustleSquidRatio
WebSocket, 64-byte messagesmsg/s56,95536,7861.5× more
WebSocket round trip, 64-byte messages (p99)ms1.31.81.3× less
WebSocket, 64 KB messagesGbit/s5.82.42.4× more
WebSocket, one connection per exchangemsg/s4,4621,7552.5× more

These are the figures of one campaign, on one kind of traffic. What the numbers do not show, multi-core results and the other proxies

How Squid was run

Squid 7.7

from source, upstream's default flags, OpenSSL

  • cache deny all, cache_mem 0
  • tcp_recv_bufsize 1 MB, read_ahead_gap 1 MB
  • forwarded_for delete, via off
  • auth helper results cached 2 h
  • workers N for N cores
  • http_upgrade_request_protocols WebSocket and websocket allow all (authentication stays enforced by http_access)

What the campaign showed

  • Authentication is not what limits it at 1 KB: 15,140 req/s with the auth helper against 15,395 without, at 64 connections.
  • Drops an Upgrade offer unless http_upgrade_request_protocols allows it.
  • No HTTP/2 towards clients.
  • Scales 1 to 8 cores almost as well as rustle (x7.74 against x7.96), from a lower base.

Why each setting was chosen · Source repository of Squid

Found a setting that makes Squid faster? Open an issue on the proxy repository: the campaign is built to be re-run.

Try rustle

Open source, fast, optimized, safe.