Performance test on Jetty/HSQLDB with a single wiki between 6.4.4 and 7.1

Last modified by Thomas Mortagne on 2015/09/23 14:07

Environment

  • Ubuntu 15.04 64b
  • Quad core i7-3630QM
  • Oracle JDK 1.8.0_45 64b
  • standard jetty+hsqldb
  • permdir in a SSD
  • only main wiki
  • configuration
    • xwiki.cfg:
      • xwiki.store.cache.capacity=500
    • Admin user:
      • hidden documents enabled

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.) 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.

Summary

Speed

ActionsDifference
Unknown macro: sl.similar
Unknown macro: sl.Unknown macro: sl.similar
Unknown macro: sl.20% quicker
Unknown macro: sl.Unknown macro: sl.similar
Unknown macro: sl.slightly better
Unknown macro: sl.slightly better
Unknown macro: sl.slightly better
Unknown macro: sl.Unknown macro: sl.similar
Unknown macro: sl.similar
Unknown macro: sl.similar
Unknown macro: sl.30% quicker
Unknown macro: sl.20% quicker
Unknown macro: sl.Unknown macro: sl./40
Unknown macro: sl./8

Memory

ActionsDifference
Unknown macro: sl.similar
Unknown macro: sl.higher

Jetty startup

Unit: seconds

Execute echo `date` && ./start_xwiki.sh and compare "Server started..." log date the one printed before jetty startup.

  • Unknown macro: previous.: 8
  • Unknown macro: next.: 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).

  • Unknown macro: previous.: 6
  • Unknown macro: next.: 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).

  • Unknown macro: previous.: 15
  • Unknown macro: next.: 12

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

  • Unknown macro: previous.: [7, 10]
  • Unknown macro: next.: [7, 10]

Reload of not existing page with UI (/xwiki/bin/view/NoSpace/NoPage)

Unit: milliseconds

  • Unknown macro: previous.: [70, 90]
  • Unknown macro: next.: [60, 80]

Reload of Main.WebHome with UI

Unit: milliseconds

  • Unknown macro: previous.: [155, 220]
  • Unknown macro: next.: [150, 200]

Reload of Main.WebHome without UI

Unit: milliseconds

  • Unknown macro: previous.: [80, 110]
  • Unknown macro: next.: [70, 80]

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).

  • Unknown macro: previous.: 74
  • Unknown macro: next.: 70

SOLR sync

Only the thread determining what need to be indexed and not the actual indexing.

when index is empty

Unit: seconds

  • Unknown macro: previous.: 1
  • Unknown macro: next.: 1

when there is nothing to do

Unit: seconds

  • Unknown macro: previous.: < 1
  • Unknown macro: next.: < 1

Search

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).

Unit: milliseconds

Result of search finding lots of results

Login with Admin user and make sure hidden document display is enabled.

http://127.0.0.1:8080/xwiki/bin/view/Main/Search?sort=score&sortOrder=desc&r=1&f_type=DOCUMENT&text=*

  • Unknown macro: previous.: [350, 450]
  • Unknown macro: next.: [270, 290]

Result of search finding one result

http://127.0.0.1:8080/xwiki/bin/view/Main/Search?sort=score&sortOrder=desc&r=1&f_type=DOCUMENT&text=%22Learn+how+to+use+XWiki%22

  • Unknown macro: previous.: [220, 250]
  • Unknown macro: next.: [160, 200]

Rendering

Page with 1000 macros without UI

1000 {{id}} macros.

Unit: milliseconds

  • Unknown macro: previous.: 3000
  • Unknown macro: next.: 80

Page with 1000 html macros without UI

1000 standalone {{html}} macros.

Unit: milliseconds

  • Unknown macro: previous.: 6000
  • Unknown macro: next.: [750, 800]

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.

  • Unknown macro: previous.: 45 used, 489 allocated
  • Unknown macro: next.: 40 used, 494 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

  • Unknown macro: previous.: 108 used, 503 allocated
  • Unknown macro: next.: 144 used, 503 allocated
Tags:
   

Get Connected