summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu-xetex/test/perf/collperf/CollPerf.pl
blob: 78c69f3549c31fac370a4dc19dab2ceb57039617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#!/usr/bin/perl -w
#  ********************************************************************
#  * COPYRIGHT:
#  * Copyright (c) 2005, International Business Machines Corporation and
#  * others. All Rights Reserved.
#  ********************************************************************

use strict;

use lib '../perldriver';

use PerfFramework;


my $options = {
	       "title"=>"Collation performance: ICU,POSIX,and Win",
	       "headers"=>"ICU_POSIX_WIN",
	       "operationIs"=>"unicode String",
	       "passes"=>"1",
	       "time"=>"2",
	       #"outputType"=>"HTML",
	       "dataDir"=>"../data",
	       "outputDir"=>"../results"
	      };

# programs
# tests will be done for all the programs. Results will be stored and connected
my $p = "debug/collperf.exe ";

my $tests = { 
	     "Key Gen ICU null",  ["$p TestIcu_KeyGen_null"],
	     "Key Gen ICU len",  ["$p TestIcu_KeyGen_len"],
	     "Key Gen POSIX",  ["$p TestPosix_KeyGen_null"],
	     "Key Gen Win",  ["$p TestWin_KeyGen_null"],
	     "Iteration icu forward null",  ["$p TestIcu_ForwardIter_null"],
	     "Iteration icu forward len",  ["$p TestIcu_ForwardIter_len"],
	     "Iteration icu backward null",  ["$p TestIcu_BackwardIter_null"],
	     "Iteration icu backward len",  ["$p TestIcu_BackwardIter_len"],
	     "Iteration/all icu forward null",  ["$p TestIcu_ForwardIter_all_null"],
	     "Iteration/all icu forward len",  ["$p TestIcu_ForwardIter_all_len"],
	     "Iteration/all icu backward null",  ["$p TestIcu_BackwardIter_all_null"],
	     "Iteration/all icu backward len",  ["$p TestIcu_BackwardIter_all_len"],
	     "qsort icu strcoll null",  ["$p TestIcu_qsort_strcoll_null"],
	     "qsort icu strcoll len",  ["$p TestIcu_qsort_strcoll_len"],
	     "qsort icu use key",  ["$p TestIcu_qsort_usekey"],
	     "qsort posix strcoll null",  ["$p TestPosix_qsort_strcoll_null"],
	     "qsort posix use key",  ["$p TestPosix_qsort_usekey"],
	     "qsort win CompareStringW null",  ["$p TestWin_qsort_CompareStringW_null"],
	     "qsort win CompareStringW len",  ["$p TestWin_qsort_CompareStringW_len"],
	     "qsort win use key",  ["$p TestWin_qsort_usekey"],
	     "Binary Search icu strcoll null",  ["$p TestIcu_BinarySearch_strcoll_null"],
	     "Binary Search icu strcoll len",  ["$p TestIcu_BinarySearch_strcoll_len"],
	     "Binary Search icu use key",  ["$p TestIcu_BinarySearch_usekey"],
	     "Binary Search icu u_strcmp",  ["$p TestIcu_BinarySearch_strcmp"],
	     "Binary Search icu cmpCPO",  ["$p TestIcu_BinarySearch_cmpCPO"],
	     "Binary Search posix strcoll null",  ["$p TestPosix_BinarySearch_strcoll_null"],
	     "Binary Search posix use key",  ["$p TestPosix_BinarySearch_usekey"],
	     "Binary Search win CompareStringW null",  ["$p TestWin_BinarySearch_CompareStringW_null"],
	     "Binary Search win CompareStringW len",  ["$p TestWin_BinarySearch_CompareStringW_len"],
	     "Binary Search win use key",  ["$p TestWin_BinarySearch_usekey"],
	     "Binary Search win wcscmp",  ["$p TestWin_BinarySearch_wcscmp"],
	    };

my $dataFiles = {
		 "",
		 [
		  "TestNames_Asian.txt",
#		  "TestNames_Chinese.txt",
#		  "TestNames_Japanese.txt",
#		  "TestNames_Japanese_h.txt",
#		  "TestNames_Japanese_k.txt",
#		  "TestNames_Korean.txt",
#		  "TestNames_Latin.txt",
#		  "Testnames_Russian.txt",
#		  "TestNames_SerbianSH.txt",
#		  "TestNames_SerbianSR.txt",
#		  "TestNames_Simplified_Chinese.txt",
#		  "TestNames_Thai.txt"
		 ]
		};

runTests($options, $tests, $dataFiles);