#Coyote - Web Framework (PoC)

1 messages · Page 1 of 1 (latest)

shadow vortex
novel geyser
#

What would it take for this not to be a poc? It's nice that it's batteries included

shadow vortex
#

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

novel geyser
#

gotchya

#

Yeah, you should rip out jinja in favor of just using zig's formatting? 😮

dire verge
#

Zig formatting can’t do control flow so it’s super limited

shadow vortex
#
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

dire verge
#

Rewrite it in Zig though 🫠

novel geyser
#

It's crazy our perception of what's fast and not: most businesses will not even see 40k requests in a month

shadow vortex
#
  8 threads and 128 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency   731.15us  160.39us  10.35ms   95.27%
    Req/Sec    21.93k     1.26k   35.58k    94.04%
  1756723 requests in 10.10s, 244.60MB read
Requests/sec: 173939.62
Transfer/sec:     24.22MB```
#

post zig-mustache swap by @winged shadow