Performance test on Jetty/HSQLDB with a single wiki between 7.4.2 and 8.0
Environment
- Ubuntu 15.10 64b
- Quad core i7-6700HQ
- Oracle JDK 1.8.0_77 64b
- standard jetty+hsqldb
- permdir in a SSD
- only main wiki
- configuration
- Admin user:
- hidden documents enabled
- Admin user:
Most response time statistics were made with Dumbbench, you can install it using cpan.
For example on Debian/Ubuntu:
$ sudo cpanm Dumbbench
Unless specifically indicated otherwise all the tests are executed with a fully initialized instance (core extensions don't run anymore, SOLR index is fully up to date, etc.) and logged in with Admin user. Basically except for a few special tests we are using an instance that already been started and run until the proc is flat for some time.
Login with Admin uer:
Tests
Summary
"similar": difference is lower than 10%
"slightly": difference is lower than 20%
Note that most of the speed related values are an average of very moving results, a lot of things is happening during a HTTP request and it's far from stable duration (that's why 10% may sounds a lot for something called "similar" but the variable can go up and down around 5% sometimes so 10% average is really not that much of a clear win). Dumbbench based tests are executed several times and the lowest result is selected.
Speed
Actions | Difference | |
---|---|---|
Jetty startup | ||
First access | not existing page without UI | similar |
not existing page with UI | similar | |
Reload | not existing page without UI | 25% faster |
not existing page with UI | similar | |
Main.WebHome with UI | slightly faster | |
Main.WebHome without UI | slightly faster | |
SOLR | Full SOLR reindex | similar |
SOLR sync when index is empty | similar | |
SOLR sync when there is nothing to do | similar | |
Result of search finding lots of results | similar | |
Result of search finding one result | similar | |
Rendering | Page with 1000 macros without UI | similar |
Page with 1000 html macros without UI | similar |
Memory
Actions | Difference |
---|---|
Heap Memory after jetty startup | similar |
Heap Memory after full SOLR index | -40MB |
Jetty startup
Unit: seconds
Execute echo `date` && ./start_xwiki.sh and compare "Server started..." log date the one printed before jetty startup.
- 7.4.2: 8
- 8.0: 8
First access
First HTTP request after restarting Jetty.
First access to not existing page without UI
(/xwiki/bin/get/NoSpace/NoPage)
Unit: seconds
Firefox network statistics to load the root resource (image/js/css/etc. resources are not taken into account).
- 7.4.2: 5
- 8.0: 5
First access to not existing page with UI
(/xwiki/bin/view/NoSpace/NoPage)
Unit: seconds
Done by hand with a chronometer (image/js/css/etc. resources are not taken into account).
- 7.4.2: 11
- 8.0: 8
Reload
XWiki is doing nothing on background and everything is both in server and client cache already. Values are calculated using dumbbench (image/js/css/etc. resources are not taken into account).
Reload of not existing page without UI
Unit: milliseconds
- 7.4.2: 6
- 8.0: 6
Reload of not existing page with UI
Unit: milliseconds
- 7.4.2: 55
- 8.0: 51
Reload of Main.WebHome with UI
Unit: milliseconds
- 7.4.2: 96
- 8.0: 85
Reload of Main.WebHome without UI
Unit: milliseconds
- 7.4.2: 38
- 8.0: 32
SOLR
Full SOLR reindex
Unit: seconds
Delete the data/solr folder, restart, load home page and calculate the time of activity of the SOLR index thread using Yourkit (Yourkit is slowing down a bit all that but what is important is the difference anyway).
- 7.4.2: 51
- 8.0: 50
SOLR sync
Only the thread determining what need to be indexed and not the actual indexing.
when index is empty
Unit: seconds
- 7.4.2: 2
- 8.0: 2
when there is nothing to do
Unit: seconds
- 7.4.2: < 1
- 8.0: < 1
Search
XWiki is doing nothing on background and everything is both in server and client cache already. Values are calculated using dumbbench (image/js/css/etc. resources are not taken into account).
Unit: milliseconds
Result of search finding lots of results
Login with Admin user and make sure hidden document display is enabled.
- 7.4.2: 188
- 8.0: 188
Result of search finding one result
- 7.4.2: 123
- 8.0: 121
Rendering
Page with 1000 macros without UI
.
Unit: milliseconds
- 7.4.2: 63
- 8.0: 62
Page with 1000 html macros without UI
.
Unit: milliseconds
- 7.4.2: 630
- 8.0: 619
Heap Memory
Attach Yourkit to get the information.
Unit: MB
Heap Memory after jetty startup
Start jetty and wait until java is not doing anything on both (wait for potential initialization of various stuff like core extension cache, etc). Force garbage collector before looking at the values.
- 7.4.2: 43 used, 347 allocated
- 8.0: 43 used, 347 allocated
Heap Memory after full SOLR index
Delete the data/solr folder, restart, load home page then wait until nothing is happening in background. Force garbage collector before looking at the values.
Unit: MB
- 7.4.2: 154 used, 506 allocated
- 8.0: 113 used, 478 allocated