( asch | 2022. 08. 16., k – 19:14 )

A rocker binárisra alakított változatával, mindháromra bemelegítés után másodszorra futtatva másoltam be az eredményeket:

$ wrk -c 100 -d 10 -t 10 http://localhost:8080/rocker
Running 10s test @ http://localhost:8080/rocker
  10 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     2.96ms    3.07ms  32.58ms   84.65%
    Req/Sec     4.32k   741.00     7.43k    69.10%
  430650 requests in 10.03s, 3.53GB read
Requests/sec:  42915.62
Transfer/sec:    360.01MB
$ wrk -c 100 -d 10 -t 10 http://localhost:8080/rtemplate
Running 10s test @ http://localhost:8080/rtemplate
  10 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.53ms    3.92ms  43.14ms   84.78%
    Req/Sec     4.00k   835.03     6.53k    68.40%
  399543 requests in 10.04s, 3.23GB read
Requests/sec:  39782.86
Transfer/sec:    329.18MB
$ wrk -c 100 -d 10 -t 10 http://localhost:8080/trimou
Running 10s test @ http://localhost:8080/trimou
  10 threads and 100 connections
  Thread Stats   Avg      Stdev     Max   +/- Stdev
    Latency     3.68ms    3.48ms  40.27ms   85.29%
    Req/Sec     3.19k   627.66     6.55k    69.80%
  318567 requests in 10.05s, 2.96GB read
Requests/sec:  31699.01
Transfer/sec:    302.07MB

A stringek bináris optimalizációja legyőzhetetlen.