Skip to main content
Version: v2023.18.0

Testing

The test jar « arondor-arender-rendition-tester-2023.18.0-jar-with-dependencies.jar », allow the user to launch some functional test on rendition server with following options as admin:

$> java -jar arondor-arender-rendition-tester-{VERSION-NUMBER}.jar
OptionDescription
dDefine the rendition server to use.
wWidth of generated pictures. The given parameter can be the width or a width gap with the number to increment. (Default value: 595)
tNumber of documents to concurrently process: simulate several users
lWhen user open a document (URL), this one is get before to be sent to rendition server
cDisable conversion of pages in pictures
pGenerated pages. The configuration is the same as width parameter, the page is directly given or given in a gap. (Default: all pages)
nDisable pages content getting back
zWaiting time between parsing and pages conversion (Default: 0)
oOutput folder where are stored the pictures. If no folder is given, picture are stored in cache
fPath of a file containing a test files list
vTest reporting file path (CSV)
rTest reporting file path (XML)
kOutput folder where are stored renditioned documents
hHelp menu
  • Basic test: This test is based on the default file of rendition server. To launch the test, all you need is, via the console, go to jar location and type the following command:
$> java -jar arondor-arender-rendition-tester-{VERSION-NUMBER}.jar -d http://rendition-server:8761/ -w "(100,1100,100)" -t 4 -v report_ARender.csv
  • adapt the port 8761 depending on your configuration

In order to test the rendition server against business sample files:

  • create a files.txt in the tester folder
  • add one absolute file path per line

To launch the test, all you need is, via the console, go to jar location and type the following command:

$> java -jar arondor-arender-rendition-tester-{VERSION-NUMBER}.jar -d http://rendition-server:8761/ -w "(100,1100,100)" -t 4 -l -f ./fichiers.txt -v rapport_ARender.csv

Analysis report

Columns

ColumnDescription
NameMetric name
TotalTotal execution duration (ms)
CallsTotal number of calls
MinimumMinimum execution duration (ms)
MaximumMaximum execution duration (ms)
TheoricalRateTheorical rate of executions per second and client thread
EffectiveRateEffective rate of executions per second

Statistics

  • [Image_IM]()${width}_0: renditions of pages of width ${width} (px)
  • Image: renditions of all pages
  • Image_PageContents: extraction of page textual content
  • Fetch_DocumentPageLayout: extraction of document layout information (mime type, page count, page dimensions) and conversion
  if necessary

Report example (4 threads)

nametotalcallsminimummaximumaveragetheoreticalRateeffectiveRate
Open101101010.0100.00.25967282
Fetch_DocumentPageLayout17011701701705.8823530.25974026
Image_IM_100_077119178340.5789524.643324.9337835
Image_IM_200_031719113116.6842159.9369159.936914.9325027
Image_IM_300_042719145022.47368444.4964874.935065
Image_IM_500_083119299543.73684322.864024.9337835
Image_IM_400_064819265334.10526329.3209884.9337835
Image_IM_600_0107019358756.3157917.757014.9337835
Image_IM_700_01409194015074.157913.4847414.9325027
Image_IM_800_01411194814874.2631613.4656284.9325027
Image_IM_900_01808195921195.157910.5088494.935065
Image_IM_1000_019731974149103.84219.6300054.9337835
Image_IM_1100_022221986176116.9473658.5508554.9337835
Image128752091121161.6028716.2330154.271618
Image_PageContents5612091422.6842105372.54954.271618

To conclude, this report shows that:

  • the average time to generate 1000 pixels images is 104 milliseconds
  • the rendition server was able to render 54 pages per second
  • PDF layout extract took 170 millisecondes