Awhile ago I made a little PoC for a web framework bolted onto IWNET using jinja2 for templating. https://github.com/linuxy/coyote
#Coyote - Web Framework (PoC)
1 messages · Page 1 of 1 (latest)
What would it take for this not to be a poc? It's nice that it's batteries included
there's some ideas for further dev in the comments: https://github.com/linuxy/coyote/blob/main/src/coyote.zig#L341
really just someone to use it and kick the tires
i don't particularly like jinja since it's rather slow, from what i remember it brings rps from 150k down to 15k
but that's plenty fast for many use cases
i'd rip out the jinja for mustache probably
the poc descriptor is just to set low expectations, but i'm open to fixing any bugs and looking over any PRs
Zig formatting can’t do control flow so it’s super limited
Running 10s test @ http://localhost:8080/index
10 threads and 10 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 384.97us 2.20ms 53.80ms 99.50%
Req/Sec 4.04k 344.29 4.39k 94.65%
405850 requests in 10.10s, 56.51MB read
Requests/sec: 40185.27
Transfer/sec: 5.60MB```
jinja isn't as slow as i remember
40k rps is fine
Rewrite it in Zig though 🫠
It's crazy our perception of what's fast and not: most businesses will not even see 40k requests in a month