(work in progress) Swift implementation of the TechEmpower benchmarks running on Kitura
Swiftenv - not required but highly recommended: https://github.com/kylef/swiftenv
apt-get install libpq-dev
brew install postgresql
Use the provided build.sh
script, either ./build.sh debug
or ./build.sh release
Or, the following command depending on platform:
swift build -Xcc -fblocks -Xcc -I/usr/include/postgresql
and optionally -c release
swift build -Xcc -I/usr/local/include -Xlinker -L/usr/local/lib/
and optionally -c release
To test that the Kitura implementation is running:
.build/release/TechEmpower
curl http://127.0.0.1:8080/plaintext
should return Hello, World!
For help on getting started running these benchmarks, see the readme in the Kitura subdirectory.
You may also find the following project useful for running comparisons and regression tests on web frameworks: https://github.com/djones6/Swift-Bench