Skip to content

derekchiang/cweb

Repository files navigation

cweb

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.

Dependencies

  1. Apache Portable Runtime
  2. r3
  3. libmicrohttpd
  4. clang with blocks extension

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

Build / Install

To build:

make

The examples will be put under build/bin/.

To install:

sudo make install

Benchmark

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.

API

TODO. For now, please refer to include/ and examples/.

About

A set of utilities for web development in C

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published