MediaWiki  REL1_20
bench_utf8_title_check Class Reference

This little benchmark executes the regexp used in Language->checkTitleEncoding() and compares its execution time against that of mb_check_encoding, if available. More...

Inheritance diagram for bench_utf8_title_check:
Collaboration diagram for bench_utf8_title_check:

List of all members.

Public Member Functions

 __construct ()
 Default constructor.
 execute ()
 Do the actual work.
 use_mb_check_encoding ($s)
 use_regexp ($s)
 use_regexp_non_capturing ($s)
 use_regexp_once_only ($s)

Private Attributes

 $canRun
 $data
 $isutf8

Detailed Description

This little benchmark executes the regexp used in Language->checkTitleEncoding() and compares its execution time against that of mb_check_encoding, if available.

Definition at line 32 of file bench_utf8_title_check.php.


Constructor & Destructor Documentation

Default constructor.

Children should call this *first* if implementing their own constructors

Reimplemented from Benchmarker.

Definition at line 38 of file bench_utf8_title_check.php.


Member Function Documentation

Do the actual work.

All child classes will need to implement this

Reimplemented from Maintenance.

Definition at line 73 of file bench_utf8_title_check.php.

References Benchmarker\bench(), Benchmarker\getFormattedResults(), and print.

Definition at line 119 of file bench_utf8_title_check.php.

References $s.

Definition at line 102 of file bench_utf8_title_check.php.

References $s.

Definition at line 107 of file bench_utf8_title_check.php.

References $s.

Definition at line 113 of file bench_utf8_title_check.php.

References $s.


Member Data Documentation

bench_utf8_title_check::$canRun [private]

Definition at line 34 of file bench_utf8_title_check.php.

bench_utf8_title_check::$data [private]

Definition at line 36 of file bench_utf8_title_check.php.

bench_utf8_title_check::$isutf8 [private]

Definition at line 100 of file bench_utf8_title_check.php.


The documentation for this class was generated from the following file: