Redbean

Redbean

Redbean is an open source web server in a zip executable that runs on six operating systems. The project is part of the C library Cosmopolitan libc and is the culmination of a series of remarkable hacks by the programmer Justine Tunney that allows the web server to be an αcτµαlly pδrταblε εxεcµταblε (Actually Portable Executable or APE for short). Redbean serves its content as gzip'ed by default and comes bundled with SQLite and Lua as its built-in scripting language. According to Justine and her benchmarks the server is capable of producing a whooping 1 million requests per second.

Redbean Benchmark

# Note: Benchmarked on an Intel® Core™ i9-9900 CPU
# Note: Use redbean-demo.com -s
$ wrk --latency -t 10000 -c 10000 -H 'Accept-Encoding: gzip' \
    http://127.0.0.1:8080/tool/net/demo/index.html
Running 10s test @ http://127.0.0.1:8080/tool/net/demo/index.html
  10000 threads and 10000 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency    10.44ms   46.76ms   1.76s    98.41%
    Req/Sec   189.08    259.45    39.10k    98.67%
  Latency Distribution
     50%    5.68ms
     75%    6.87ms
     90%    8.77ms
     99%  197.91ms
  4327728 requests in 3.72s, 3.37GB read
  Socket errors: connect 0, read 5, write 0, timeout 2
Requests/sec: 1163062.91
Transfer/sec:      0.90GB
New Redbean Tutorials
View all
New Redbean Podcasts
View all
New Redbean Videos
View all
New Redbean Questions
View all
New Redbean Books
View all
New Redbean Courses
View all