Benchmarks
in package
Benchmarks class.
Table of Contents
- $hashAlgo : array<string|int, string>
- $mathFunctions : array<string|int, string>
- $stringFunctions : array<string|int, string>
- all() : mixed
- cpu() : array<string|int, mixed>
- CPU benchmark.
- db() : array<string|int, mixed>
- RAM benchmark.
- hardDrive() : array<string|int, mixed>
- Hard drive benchmark.
- ram() : array<string|int, mixed>
- RAM benchmark.
Properties
$hashAlgo
public
static array<string|int, string>
$hashAlgo
= ['md4', 'md5', 'crc32', 'sha1', 'adler32', 'ripemd256', 'sha256', 'sha384', 'sha512']
Hash functions list
$mathFunctions
public
static array<string|int, string>
$mathFunctions
= ['abs', 'acos', 'asin', 'atan', 'floor', 'exp', 'sin', 'tan', 'is_finite', 'is_nan', 'sqrt']
Math functions list
$stringFunctions
public
static array<string|int, string>
$stringFunctions
= ['addslashes', 'chunk_split', 'metaphone', 'strip_tags', 'strtoupper', 'strtolower', 'strrev', 'strlen', 'soundex', 'ord', 'ucfirst', 'ucwords', 'rtrim', 'trim', 'ltrim']
String functions list
Methods
all()
public
static all() : mixed
Return values
mixed —cpu()
CPU benchmark.
private
static cpu() : array<string|int, mixed>
Return values
array<string|int, mixed> —db()
RAM benchmark.
private
static db() : array<string|int, mixed>
Return values
array<string|int, mixed> —hardDrive()
Hard drive benchmark.
private
static hardDrive() : array<string|int, mixed>
Return values
array<string|int, mixed> —ram()
RAM benchmark.
private
static ram() : array<string|int, mixed>