forked from IIISpikerIII/speedy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
33 lines (30 loc) · 1.32 KB
/
index.php
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
<?php
error_reporting(E_ALL);
ini_set("display_errors", 1);
defined('BASE_PATH') or define('BASE_PATH',__DIR__.'/src');
require_once("vendor/autoload.php");
print \speedy\Speedy::test(\speedy\Speedy::PHP_INC_PREF_POST);
//
//$pref = function($size)
//{
// $testCounter = 0;
// for($i=0;$i<$size;$i++) {
// ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter;
// ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter;
// ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter;
// ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter; ++$testCounter;
// }
//};
//
//$post = function($size)
//{
// $testCounter = 0;
// for($i=0;$i<$size;$i++) {
// $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++;
// $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++;
// $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++;
// $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++; $testCounter++;
// }
//};
//
//print \speedy\Speedy::compare(['pref' => $pref, 'post' => $post]);