cweb
is a set of utilities to facilitate web development in C.
This is very much a work in progress. Here is a sneak peak.
On Ubuntu, all dependencies other than r3 can be installed with the following command:
sudo apt-get install libapr1-dev libmicrohttpd-dev clang libblocksruntime-dev
To build:
make
The examples will be put under build/bin/
.
To install:
sudo make install
You can benchmark the server with ab
, the Apache HTTP server benchmarking tool. Make sure a server (examples/server.c
will do) is running on port 8000, then:
ab -n 10000 -c 1000 http://127.0.0.1:8000/
On my laptop, it's able to handle roughly 37K requests per second.
TODO. For now, please refer to include/
and examples/
.