Hello,
When I return just "hello" in the module, I get around 15K requests per second with wrk. But when I load a simple template I get around 8.5K r.p.s. Even though the templates are cached, the templates are being checked for modification. When I disabled that check, I get around 10.5K requests per second.
Are there any other optimisations that I can do w.r.t to templates so that they load faster?
--- case #1 - return hello ---
4 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 7.00ms 5.69ms 103.85ms 95.66%
Req/Sec 3.82k 468.50 6.79k 92.04%
152938 requests in 10.10s, 54.69MB read
Requests/sec: 15140.54
Transfer/sec: 5.41MB
--- case #2 - simple template ---
4 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 39.49ms 71.05ms 318.15ms 86.47%
Req/Sec 2.48k 0.93k 3.88k 80.00%
85915 requests in 10.01s, 78.08MB read
Requests/sec: 8579.02
Transfer/sec: 7.80MB
--- case #3 - simple template (modification check disabled) ---
4 threads and 100 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 50.40ms 158.01ms 965.50ms 93.08%
Req/Sec 2.89k 331.91 3.85k 94.78%
105179 requests in 10.01s, 95.59MB read
Requests/sec: 10508.69
Transfer/sec: 9.55MB
Ram