From: Brion Vibber Date: Thu, 11 Nov 2004 07:05:21 +0000 (+0000) Subject: Add a Russian test file to the benchmark (2-byte characters, using ASCII spacing... X-Git-Tag: 1.5.0alpha1~1379 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=b108d982860af6b967b0e1765133c60b7eb4d616;p=lhc%2Fweb%2Fwiklou.git Add a Russian test file to the benchmark (2-byte characters, using ASCII spacing and punctuation) --- diff --git a/includes/normal/Makefile b/includes/normal/Makefile index 9be6977b2b..1042e12711 100644 --- a/includes/normal/Makefile +++ b/includes/normal/Makefile @@ -15,7 +15,7 @@ test : testutf8 UtfNormalTest.php UtfNormalData.inc NormalizationTest.txt testutf8 : Utf8Test.php UTF-8-test.txt $(PHP) Utf8Test.php -bench : UtfNormalData.inc testdata/washington.txt testdata/berlin.txt testdata/tokyo.txt testdata/sociology.txt +bench : UtfNormalData.inc testdata/washington.txt testdata/berlin.txt testdata/tokyo.txt testdata/sociology.txt testdata/bulgakov.txt $(PHP) UtfNormalBench.php clean : @@ -54,3 +54,6 @@ testdata/tokyo.txt : testdata/sociology.txt : mkdir -p testdata && wget -U MediaWiki/test -O testdata/sociology.txt "http://ko.wikipedia.org/w/wiki.phtml?title=%EC%82%AC%ED%9A%8C%ED%95%99&oldid=16409&action=raw" + +testdata/bulgakov.txt : + mkdir -p testdata && wget -U MediaWiki/test -O testdata/bulgakov.txt "http://ru.wikipedia.org/w/wiki.phtml?title=%D0%91%D1%83%D0%BB%D0%B3%D0%B0%D0%BA%D0%BE%D0%B2%2C_%D0%A1%D0%B5%D1%80%D0%B3%D0%B5%D0%B9_%D0%9D%D0%B8%D0%BA%D0%BE%D0%BB%D0%B0%D0%B5%D0%B2%D0%B8%D1%87&oldid=17704&action=raw" diff --git a/includes/normal/UtfNormalBench.php b/includes/normal/UtfNormalBench.php index 929f6a1cce..dbf69f46b7 100644 --- a/includes/normal/UtfNormalBench.php +++ b/includes/normal/UtfNormalBench.php @@ -41,6 +41,7 @@ if( php_sapi_name() != 'cli' ) { $testfiles = array( 'testdata/washington.txt' => 'English text', 'testdata/berlin.txt' => 'German text', + 'testdata/bulgakov.txt' => 'Russian text', 'testdata/tokyo.txt' => 'Japanese text', 'testdata/sociology.txt' => 'Korean text' );