xpra icon
Bug tracker and wiki

Changes between Version 25 and Version 26 of Testing


Ignore:
Timestamp:
04/28/15 22:38:03 (4 years ago)
Author:
Nick Centanni
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Testing

    v25 v26  
    5959To create multiple output files which can be used to generate charts, using [http://xpra.org/trac/browser/xpra/trunk/src/tests/xpra/test_measure_perf_charts.py xpra.test_measure_perf_charts]:
    6060* Build a config class by taking a copy from [http://xpra.org/trac/browser/xpra/trunk/src/tests/xpra/perf_config_default.py xpra.perf_config_default.py], then making changes as necessary.
    61 * Determine the values of the following variables: prefix: (a string to identify the data set), id: (a string to identify the variable that the data set is testing, for example '14', for testing version 14), repetitions: the number of times you want to run the tests.
     61* Determine the values of the following variables: prefix: (a string to identify the data set), ID: (a string to identify the variable that the data set is testing, for example '14', for testing version 14), repetitions: the number of times you want to run the tests.
    6262* The data file names you will produce will then be in the format: prefix_id_rep.csv.
    6363* With this information in hand you can now create a script that will run the tests.
     
    6969}}}
    7070
    71 In the above example, test_measure_perf is run twice, using a config class named "all_tests_40.py", and outputting the results to data files using the prefix "all_tests_40", for version 14, repetition 1 and 2.
     71In the above example, test_measure_perf is run twice, using a config class named "all_tests_40.py", and outputting the results to data files using the prefix "all_tests_40", an ID of "14", for repetitions 1 and 2.
    7272
    73 The optional arguments "1 14" and "2 14" pass the rep and label values into the script which will store them in the "Custom Params" column of the data.
     73The optional arguments "1 14" and "2 14" pass the rep and ID values in to the script, which will store them in the "Custom Params" column of the data.
     74
     75After running your script, open your copy of [http://xpra.org/trac/browser/xpra/trunk/src/tests/xpra/test_measure_perf_charts.py xpra.test_measure_perf_charts] and change the variables at the top of the file so the script will point to the series of data files that you have generated.
     76
     77These variables are described in the script. Once this has been done, run the script on the command line, and an HTML file will be generated containing your charts.
     78
     79This HTML file will be loadable without modifications if it is placed in the {{{trunk/src/tests/xpra directory}}}. If placed elsewhere, then the {{{js}}} and {{{css}}} files found in that directory will need to be copied to the same location as the HTML file.
    7480}}}
    7581