Re: Performance tuning

Splash Forums Rewrite Users Performance tuning Re: Performance tuning

#22962

pavel.arnost
Participant

These are my results from ab and test project from rewrite.zip, after 10k warm-up requests:

(without org.ocpsoft.rewrite.config.ConfigurationCacheProvider)

ab -n 1000 -c 30 -k http://127.0.0.1/rewritetest/region-name/category-name

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

(without both org.ocpsoft.rewrite.config.ConfigurationCacheProvider and org.ocpsoft.rewrite.config.ConfigurationProvider)

ab -n 1000 -c 30 -k http://127.0.0.1/rewritetest/task/list.html?categoryName=name&regionName=region

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

As you see, time per request is 5 times worse with rewrite than without rewrite.