icu/icu4c/source/test/perf
2024-12-05 20:50:03 +01:00
..
charperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
collationperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
collperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
collperf2 ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
convperf ICU-21107 Specify language standard versions C11 & C++17 also for MSVC 2024-01-17 09:26:22 -08:00
DateFmtPerf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
dicttrieperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
howExpensiveIs ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
localecanperf ICU-22721 Clang-Tidy: modernize-use-override 2024-04-29 19:28:40 +02:00
normperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
perldriver ICU-21580 Fix typos in icu4c/ 2021-07-19 13:22:38 -05:00
strsrchperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
ubrkperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
ucnvavailperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
unisetperf ICU-22793 Remove superfluous return value typecasts to UBool. 2024-09-19 17:11:38 +02:00
usetperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
ustrperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
utfperf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
utrie2perf ICU-22793 Clang-Tidy: google-readability-casting 2024-07-04 22:32:12 +02:00
icuperf2report.xsl ICU-21257 remove #License fragment from license URLs 2020-09-04 10:02:17 -07:00
Makefile.in ICU-21843 Modifies performance tests and test framework in preparation of 2022-02-11 11:29:19 -08:00
perf.sln ICU-10549 Merging a new collation performance regression test cases from a branch. 2013-12-09 17:32:25 +00:00
README ICU-21580 Fix typos in icu4c/ 2021-07-19 13:22:38 -05:00

Copyright (C) 2016 and later: Unicode, Inc. and others.
License & terms of use: http://www.unicode.org/copyright.html

Copyright (C) 2008-2013, International Business Machines
Corporation and others.  All Rights Reserved.

README for ICU4C Performance Test

Introduction:
The performance tests in ICU4C compares various aspects of ICU against previous versions of ICU,
Posix, and/or Windows.  Some tests only run on Windows and are labeled accordingly.All of the 
performance tests are driven by a perl-based script which calls the underlying C program and 
displays the statistical analysis of the test in an easy to read HTML web page.  Each test will
have its own web page.


Requirements:
The most up to date tests are in ICU 4.0 and later. In addition, most tests depend on data which are 
in a separate repository.

Data repository:
http://source.icu-project.org/repos/icu/data/trunk/test/perf
There are 3 folders in here: collation, conversion, and udr.


Running Performance Test:

1) Checkout the current ICU and 2 previous versions (for proper regression testing) and the data
   into your local system.

2) Do a general build on all the ICUs either through Visual Studios or with the Makefile.

3) Build the ICU performance tests either through Visual Studios or with the Makefile.
   (The location of the performance test is: icu/source/test/perf)

4) Go to perf/perldriver, copy Common.pl.template to Common.pl.
   In this file, you will need to set a few variables:
   a) ICU version numbers
   b) Path to the performance test data
   c) Path to the root directory of the different versions of ICU
   d) Whether or not you are running the test on Windows
   * The Path needs to be absolute
   * All other variables should be left as is

5) Create a directory pref/results. All of the test result web pages will be
   stored in this directory.

6) In the perf directory, there are several other directories for the various tests that can be run.
   (e.g. convperf (Conversion tests)). Go to each directory and execute the perl script for each test
   you want to run. (e.g. CharPerf_r.pl in CharPerf directory)
   * You only need to run the perl script from the latest ICU version.  The corresponding perl script 
     in the previous versions of ICU do not need to be run separately.


Note: When running on Windows, cygwin is preferred.
Note: If a test needs to be run on Windows, a message will be displayed.
Note: After building the performance tests, it is a good idea to execute each C program to ensure that each
      test can run. (e.g. convperf.exe)
Note: To run the actual performance test, you will need to setup Perl with the following modules:
      a) Statistics/Distribution.pm
      b) Statistics/Descriptive.pm 
Note: Some tests take a while depending on the machine it is running on so a script to run each performance test's
      perl script might be helpful.
Note: The perl script is only used in one version of ICU. When you run regression tests,
      it is recommended to run the tests from the later version of ICU.