Add Makefile with GCC build targets for rpubsub server and load_test binary, implement high-performance multi-threaded WebSocket pub/sub server in rpubsub.c with lock-free task queue and worker thread pool, create load_test.c for benchmarking with 1000 subscribers and 10 publishers over WebSocket, and include test.py asyncio-based integration test script
11 lines
211 B
Makefile
11 lines
211 B
Makefile
|
|
build:
|
|
gcc -D_GNU_SOURCE -O3 -march=native -mtune=native -flto -pthread rpubsub.c -o rpubsub -lrt -std=c11
|
|
gcc -O3 -march=native -std=c11 -o load_test load_test.c -lm -lrt
|
|
|
|
clean:
|
|
rm -f rpubsub load_test
|
|
|
|
|
|
|