Re: Performance tuning

Splash Forums Rewrite Users Performance tuning Re: Performance tuning



SimpleForward has small effect on my machine:

ab -n 1000 -c 30 -k

Concurrency Level:      30
Time taken for tests: 2.313 seconds
Complete requests: 1000
Failed requests: 0
Write errors: 0
Keep-Alive requests: 1000
Total transferred: 5549000 bytes
HTML transferred: 5226000 bytes
Requests per second: 432.43 [#/sec] (mean)
Time per request: 69.375 [ms] (mean)
Time per request: 2.313 [ms] (mean, across all concurrent requests)
Transfer rate: 2343.33 [Kbytes/sec] received

That’s about 5 ms per request better then your previous version and 25 ms better than “vanilla” 2.0.0-SNAPSHOT.

I’m eager to test Lincoln’s optimizations, combined with Join.simple(), results can be interesting.

Are all rules evaluated at defined order? And when match is found, no more rules are evaluated?

I moved Join.path(“/{regionName}/{categoryName}”) rule to the top and time per requests drops to 46 ms. After I deleted all other rules, time per request drops to 23 ms. Why is that? Why rules defined after matched rule slow things down?