]> git.saurik.com Git - apple/icu.git/blame - icuSources/test/perf/normperf/NormPerf.pl
ICU-6.2.22.tar.gz
[apple/icu.git] / icuSources / test / perf / normperf / NormPerf.pl
CommitLineData
b75a7d8f
A
1#!/usr/bin/perl -w
2# ********************************************************************
3# * COPYRIGHT:
4# * Copyright (c) 2002, International Business Machines Corporation and
5# * others. All Rights Reserved.
6# ********************************************************************
7
8use strict;
9
10use lib '../perldriver';
11
12use PerfFramework;
13
14
15my $options = {
16 "title"=>"Normalization performance: ICU vs. Win",
17 "headers"=>"Win ICU",
18 "operationIs"=>"code point",
19 "passes"=>"10",
20 "time"=>"5",
21 #"outputType"=>"HTML",
22 "dataDir"=>"c:/src/perf/data",
23 "outputDir"=>"../results"
24 };
25
26# programs
27# tests will be done for all the programs. Results will be stored and connected
28my $p = "normperf.exe -b -u";
29
30my $tests = {
31 "NFC_NFD_Text", ["$p TestWin_NFC_NFD_Text" , "$p TestICU_NFC_NFD_Text" ],
32 "NFC_NFC_Text", ["$p TestWin_NFC_NFC_Text" , "$p TestICU_NFC_NFC_Text" ],
33 "NFC_Orig_Text", ["$p TestWin_NFC_Orig_Text" , "$p TestICU_NFC_Orig_Text"],
34 "NFD_NFD_Text", ["$p TestWin_NFD_NFD_Text" , "$p TestICU_NFD_NFD_Text" ],
35 "NFD_NFC_Text", ["$p TestWin_NFD_NFC_Text" , "$p TestICU_NFD_NFC_Text" ],
36 "NFD_Orig_Text", ["$p TestWin_NFD_Orig_Text" , "$p TestICU_NFD_Orig_Text"]
37 };
38
39my $dataFiles = {
40 "",
41 [
42 "TestNames_Asian.txt",
43 "TestNames_Chinese.txt",
44 "TestNames_Japanese.txt",
45 "TestNames_Japanese_h.txt",
46 "TestNames_Japanese_k.txt",
47 "TestNames_Korean.txt",
48 "TestNames_Latin.txt",
49 "TestNames_SerbianSH.txt",
50 "TestNames_SerbianSR.txt",
51 "TestNames_Thai.txt",
52 "Testnames_Russian.txt",
53 "th18057.txt",
54 "thesis.txt",
55 "vfear11a.txt",
56 ]
57 };
58
59runTests($options, $tests, $dataFiles);