Skip to content

RandomHashTags/destiny

Repository files navigation

Destiny

Requires at least Swift 5.9 Apache 2.0 License

Destiny is a standalone lightweight web server that makes use of the latest Swift features to push performance to the absolute limits of the Swift Language, and designed to require the minimum amount of dependencies.

It provides middleware and routers, which are written using Swift Macros, for processing requests.

Features like native compression, CORS, embedded support, TLS, Web Sockets, and HTTP2 are coming soon.

Getting started

coming soon...

Benchmarks

Static

Initial testing of a basic HTML response shows that this library has the lowest server latency and most consistent timings when serving the same content.

Dynamic

Depends on how much dynamic content you add, but initial testing compared to a Static response cost only a few microseconds more (~10-50). I am actively researching and testing improvements.

Conclusion

This library is the clear leader in reliability, performance and efficiency. Static content offer the best performance, while dynamic content still tops the charts.

Contributing

Create a PR.