Performance test on Jetty/HSQLDB with a single wiki between 8.4.4 and 9.0
Environment
- Ubuntu 16.10 64b
- Quad core i7-6700HQ
- Oracle JDK 1.8.0_121 64b
- Dumbbench 0.10
- standard jetty+hsqldb
- permdir in a SSD
- only main wiki
- configuration
- Admin user:
- hidden documents enabled
- Admin user:
- import
Most of response time statistics are 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 user:
Tests
Summary
There hasn't been much work on performance in 9.0 so it's very similar to 8.4.4. The speed up in the Jetty startup is because Let's Encryp extension has been removed in 9.0.
"similar": difference is lower than 10%
"slightly": difference is lower than 20%
Speed
Actions | Difference | |
---|---|---|
Jetty startup | -23% | |
First access | not existing page without UI | similar |
not existing page with UI | similar | |
Reload | not existing page without UI | similar |
not existing page with UI | similar | |
empty page without UI | similar | |
empty page with UI | similar | |
Main.WebHome without UI | similar | |
Main.WebHome with UI | similar | |
SOLR | Full SOLR reindex | similar |
SOLR sync when index is empty | similar | |
SOLR sync when there is nothing to do | slightly slower | |
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 | -10MB |
Heap Memory after full SOLR index | +6MB |
Jetty startup
Unit: seconds
You get this from the log with the line looking like 2016-10-19 16:52:25.309:INFO:oejs.Server:main: Started @8434ms.
- 8.4.4: 13
- 9.0: 10
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).
- 8.4.4: 5.5
- 9.0: 5.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).
- 8.4.4: 10
- 9.0: 10
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
- 8.4.4: 6.2
- 9.0: 6.4
Reload of not existing page with UI
Unit: milliseconds
- 8.4.4: 77
- 9.0: 78
Reload of empty page without UI
Unit: milliseconds
- 8.4.4: 6.3
- 9.0: 6.5
Reload of empty page with UI
Unit: milliseconds
- 8.4.4: 76
- 9.0: 75
Reload of Main.WebHome without UI
Unit: milliseconds
- 8.4.4: 7.7
- 9.0: 7.7
Reload of Main.WebHome with UI
Unit: milliseconds
- 8.4.4: 76
- 9.0: 76
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).
- 8.4.4: 53
- 9.0: 54
SOLR sync
Only the thread determining what need to be indexed and not the actual indexing.
when index is empty
Unit: milliseconds
- 8.4.4: 1528
- 9.0: 1527
when there is nothing to do
Unit: milliseconds
- 8.4.4: 412
- 9.0: 596
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.
- 8.4.4: 149
- 9.0: 157
Result of search finding one result
- 8.4.4: 110
- 9.0: 109
Rendering
Page with 1000 macros without UI
Unit: milliseconds
- 8.4.4: 60
- 9.0: 62
Page with 1000 html macros without UI
Unit: milliseconds
- 8.4.4: 655
- 9.0:
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.
- 8.4.4: 61 used, 567 allocated
- 9.0: 51 used, 512 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
- 8.4.4:162 used, 732 allocated
- 9.0: 168 used, 769 allocated