Performance test on Jetty/HSQLDB with a single wiki between 6.4.3 and 7.0
Environment
- Ubuntu 14.10 64b
- Quad core i7
- Oracle JDK 1.8.0_40 64b
- standard jetty+hsqldb
- only main wiki
Unless specifically indicated otherwise all the test are executed with a fully initialized instance (core extensions don't run anymore, SOLR index is fully up to date, etc.). 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.
Summary
Speed
Actions | Difference | |
---|---|---|
Jetty startup | similar | |
First access | not existing page without UI | similar |
not existing page with UI | 30% quicker | |
Reload | not existing page without UI | similar |
not existing page with UI | slightly better | |
Main.WebHome with UI | slightly better | |
Main.WebHome without UI | similar | |
SOLR | Full SOLR reindex | similar |
SOLR sync when index is empty | 50% quicker | |
SOLR sync when there is nothing to do | similar | |
Rendering | Page with 1000 macros without UI | 30% quicker |
Memory
Actions | Difference |
---|---|
Memory after jetty startup | similar |
Memory after full SOLR index | similar |
Jetty startup
Unit: seconds
Until end message is printed. Done by hand with a chronometer.
- 6.4.3: 10
- 7.0: 9
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).
- 6.4.3 : 6
- 7.0 : 6
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).
- 6.4.3 : 15
- 7.0 : 10
Reload
XWiki is doing nothing on background and everything is both in server and client cache already. Firefox network statistics to load the root resource (image/js/css/etc. resources are not taken into account).
Reload of not existing page without UI (/xwiki/bin/get/NoSpace/NoPage)
Unit: milliseconds
- 6.4.3 : [10, 15]
- 7.0 : [10, 15]
Reload of not existing page with UI (/xwiki/bin/view/NoSpace/NoPage)
Unit: milliseconds
- 6.4.3 : [70, 150]
- 7.0 : [60, 90]
Reload of Main.WebHome with UI
Unit: milliseconds
- 6.4.3 : [200, 300]
- 7.0 : [180, 250]
Reload of Main.WebHome without UI
Unit: milliseconds
- 6.4.3 : [70, 100]
- 7.0 : [60, 100]
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).
- 6.4.3 : 67
- 7.0 : 67
SOLR sync
Only the thread determining what need to be indexed and not the actual indexing.
when index is empty
Unit: seconds
- 6.4.3 : 2
- 7.0 : 1
when there is nothing to do
Unit: seconds
- 6.4.3 : < 1
- 7.0 : < 1
Rendering
Page with 1000 macros without UI
1000 times {{id}} macro, one on each line.
Unit: seconds
- 6.4.3 : 3.5
- 7.0 : 2.5
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.
- 6.4.3 : 51 used, 449 allocated
- 7.0 : 43 used, 493 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
- 6.4.3 : 96 used, 504 allocated
- 7.0 : 112 used, 478 allocated