summaryrefslogtreecommitdiff
path: root/Build/source/libs/icu-xetex/test/perf/utfperf/UtfPerf.pl
blob: 0c7ff961a3a78bf2eabeeebb5e9a3f334f725dd6 (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
#!/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"=>"Utf performance: ICU",
	       "headers"=>"ICU",
	       "operationIs"=>"gb18030 encoding 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/utfperf.exe -e gb18030";

my $tests = { 
	     "UTF-8",  ["$p UTF_8"],
	     "UTF-8 small buffer",  ["$p UTF_8_SB"],
	     "SCSU",  ["$p SCSU"],
	     "SCSU small buffer",  ["$p SCSU_SB"],
	     "BOCU_1",  ["$p BOCU_1"],
	     "BOCU_1 small buffer",  ["$p BOCU_1_SB"],
	    };

my $dataFiles = {
		 "",
		 [
		  "four.txt"
		 ]
		};

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