Performance test on Jetty/HSQLDB with a single wiki between 14.4.7 and 14.10
Environment
- Windows 11 64bit version 22H2
- Quad core i7-9750H
- Oracle JDK 17.0.5 (build 17.0.5+9-LTS-191)
- Dumbbench 0.503
- VisualVM 2.1.5
- permdir in a SSD
- standard Jetty/HSQLDB package
- 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 apt-get install cpanminus
$ sudo cpanm Module::Install
$ sudo cpanm DumbbenchOn Windows 11:
- Install perl from https://strawberryperl.com/
- Go to Windows Terminal and install Dumbbench:
PS C:\> perl
PS C:\> cpanm Dumbbench (If needed) Download wget.exe (64 bit) from https://eternallybored.org/misc/wget/
Make a folder for testing the instances and put wget.exe there.
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 (using port 1115):
.\wget.exe --save-cookies cookies.txt --post-data 'j_username=Admin&j_password=admin&j_rememberme=true' "http://127.0.0.1:1115/xwiki/bin/loginsubmit/XWiki/XWikiLogin?j_username=Admin&j_password=admin&j_rememberme=true"Tests
Summary
"similar": difference is lower than 10%
"slightly": difference is lower than 20%
Speed
| Actions | Difference | |
|---|---|---|
| Jetty startup | similar | |
| 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 | 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 | |
| Wiki creation | From flavor | similar |
| From template | slightly slower | |
Memory
| Actions | Difference |
|---|---|
| Heap Memory after jetty startup | +6 MB |
| Heap Memory after full SOLR index | +9 MB |
Jetty startup
Unit: milliseconds
This information is obtained from the log with the line looking like 2022-06-15 14:24:27.163:INFO :oejs.Server:main: Started Server@503d687a{STARTING}[10.0.7,sto=5000] @23806ms.
- 14.4.7: 22674
- 14.10: 22844
First access
First HTTP request after restarting Jetty.
First access to not existing page without UI
(/xwiki/bin/get/NoSpace/NoPage)
Unit: milliseconds
Firefox network statistics to load the root resource (image/js/css/etc. resources are not taken into account).
- 14.4.7: 27916
- 14.10: 28596
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).
- 14.4.7: 30
- 14.10: 30
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
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/get/NoSpace/NoPage"Unit: milliseconds
- 14.4.7: 28
- 14.10: 29
Reload of not existing page with UI
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/view/NoSpace/NoPage"Unit: milliseconds
- 14.4.7: 30
- 14.10: 30
Reload of empty page without UI
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/get/EmptySpace/EmptyPage"Unit: milliseconds
- 14.4.7: 2.9
- 14.10: 2.9
Reload of empty page with UI
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/view/EmptySpace/EmptyPage"Unit: milliseconds
- 14.4.7: 39
- 14.10: 40
Results of tests for 14.10:
Test 1: 0.401740 (40 ms)
Test 2: 0.400450 (40 ms)
Test 3: 0.398810 (40 ms)
Test 4: 0.399770 (40 ms)
Test 5: 0.399170 (40 ms)
Reload of Main.WebHome without UI
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/get/Main/WebHome"Unit: milliseconds
- 14.4.7: 3.5
- 14.10: 3.4
Results of tests for 14.10:
Test 1: 0.033964 (3.4 ms)
Test 2: 0.034218 (3.4 ms)
Test 3: 0.034151 (3.4 ms)
Test 4: 0.034388 (3.4 ms)
Test 5: 0.033692 (3.4 ms)
Reload of Main.WebHome with UI
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/view/Main/WebHome"Unit: milliseconds
- 14.4.7: 40
- 14.10: 41
Results of tests for 14.10:
Test 1: 0.409280 (41 ms)
Test 2: 0.409080 (41 ms)
Test 3: 0.411740 (41 ms)
Test 4: 0.408390 (41 ms)
Test 5: 0.406440 (41 ms)
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 VisualVM (XWiki Solr index thread from Threads Tab > Running column, after it's parked).
- 14.4.7: 153
- 14.10: 164
SOLR sync
Only the thread determining what need to be indexed and not the actual indexing.
<perm dir>/data/jobs/status/solr/indexer/status.xml
when index is empty
Unit: nanoseconds
- 14.4.7: 1652155600 (1.65 s)
- 14.10: 1752477600 (1.75 s)
when there is nothing to do
Unit: nanoseconds
- 14.4.7: 649784000 (650 ms)
- 14.10: 604087400 (604 ms)
Results of tests for 14.10:
Test 1: 661911200
Test 2: 628467500
Test 3: 642123600
Test 4: 619234300
Test 5: 604087400
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.
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt """http://127.0.0.1:1115/xwiki/bin/view/Main/Search?sort=score&sortOrder=desc&r=1&f_type=DOCUMENT&text=*"""- 14.4.7: 74
- 14.10: 76
Result of search finding one result
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt """http://127.0.0.1:1115/xwiki/bin/view/Main/Search?sort=score&sortOrder=desc&r=1&f_type=DOCUMENT&text=name%3A1000Macros"""- 14.4.7: 55
- 14.10: 58
Results of tests for 14.10:
Test 1: 0.583480 (58 ms)
Test 2: 0.584100 (58 ms)
Test 3: 0.581530 (58 ms)
Test 4: 0.582420 (58 ms)
Test 5: 0.580430 (58 ms)
Rendering
Page with 1000 macros without UI
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/get/Test/1000Macros"Unit: milliseconds
- 14.4.7: 10
- 14.10: 11
Results of tests for 14.10:
Test 1: 0.112660 = (11 ms)
Test 2: 0.111680 = (11 ms)
Test 3: 0.113410 = (11 ms)
Test 4: 0.112230 = (11 ms)
Test 5: 0.111880 = (11 ms)
Page with 1000 html macros without UI
dumbbench --float -p 0.1 -i 100 -- wget -q -o NUL -O NUL --load-cookies cookies.txt "http://127.0.0.1:1115/xwiki/bin/get/Test/1000HTMLMacros"Unit: milliseconds
- 14.4.7: 54
- 14.10: 54
Results of tests for 14.10:
Test 1: 0.536800 (54 ms)
Test 2: 0.545000 (54 ms)
Test 3: 0.538350 (54 ms)
Test 4: 0.538190 (54 ms)
Test 5: 0.538910 (54 ms)
Wiki creation
Unit: nanoseconds
From flavor
Create the wiki test1 from default flavor and get the time spent from the job (</rootStep> in <permdir>/jobs/status/wikicreation/createandinstall/test1/status.xml).
- 14.4.7: 34141839400 (34 s)
- 14.10: 34831486900 (35 s)
From template
Make test1 a template wiki.
Create the wiki test2 from wiki test1 and get the time spend from the job (</rootStep> in <permdir>/jobs/status/wikicreation/createandinstall/test2/status.xml).
- 14.4.7: 27937668800 (28 s)
- 14.10: 32084581400 (32 s)
Heap Memory
Attach VisualVM 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 "used".
- 14.4.7: 90 used, 164 allocated
- 14.10: 96 used, 167 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 "used".
Unit: MB
- 14.4.7: 243 used, 745 allocated
- 14.10: 252 used, 776 allocated