Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 18.188.39.197
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
home /
www /
unp /
vendor /
react /
event-loop /
examples /
Delete
Unzip
Name
Size
Permission
Date
Action
01-timers.php
239
B
-rw-r--r--
2018-07-11 09:00
02-periodic.php
315
B
-rw-r--r--
2018-07-11 09:00
03-ticks.php
222
B
-rw-r--r--
2018-07-11 09:00
04-signals.php
504
B
-rw-r--r--
2018-07-11 09:00
11-consume-stdin.php
787
B
-rw-r--r--
2018-07-11 09:00
12-generate-yes.php
1.3
KB
-rw-r--r--
2018-07-11 09:00
13-http-client-blocking.php
822
B
-rw-r--r--
2018-07-11 09:00
14-http-client-async.php
1.76
KB
-rw-r--r--
2018-07-11 09:00
21-http-server.php
1.04
KB
-rw-r--r--
2018-07-11 09:00
91-benchmark-ticks.php
250
B
-rw-r--r--
2018-07-11 09:00
92-benchmark-timers.php
251
B
-rw-r--r--
2018-07-11 09:00
93-benchmark-ticks-delay.php
396
B
-rw-r--r--
2018-07-11 09:00
94-benchmark-timers-delay.php
396
B
-rw-r--r--
2018-07-11 09:00
95-benchmark-memory.php
1.85
KB
-rw-r--r--
2018-07-11 09:00
Save
Rename
<?php /** * Run the script indefinitely seconds with the loop from the factory and report every 2 seconds: * php 95-benchmark-memory.php * Run the script for 30 seconds with the stream_select loop and report every 10 seconds: * php 95-benchmark-memory.php -t 30 -l StreamSelect -r 10 */ use React\EventLoop\Factory; use React\EventLoop\LoopInterface; use React\EventLoop\TimerInterface; require __DIR__ . '/../vendor/autoload.php'; $args = getopt('t:l:r:'); $t = isset($args['t']) ? (int)$args['t'] : 0; $loop = isset($args['l']) && class_exists('React\EventLoop\\' . $args['l'] . 'Loop') ? 'React\EventLoop\\' . $args['l'] . 'Loop' : Factory::create(); if (!($loop instanceof LoopInterface)) { $loop = new $loop(); } $r = isset($args['r']) ? (int)$args['r'] : 2; $runs = 0; if (5 < $t) { $loop->addTimer($t, function () use ($loop) { $loop->stop(); }); } $loop->addPeriodicTimer(0.001, function () use (&$runs, $loop) { $runs++; $loop->addPeriodicTimer(1, function (TimerInterface $timer) use ($loop) { $loop->cancelTimer($timer); }); }); $loop->addPeriodicTimer($r, function () use (&$runs) { $kmem = round(memory_get_usage() / 1024); $kmemReal = round(memory_get_usage(true) / 1024); echo "Runs:\t\t\t$runs\n"; echo "Memory (internal):\t$kmem KiB\n"; echo "Memory (real):\t\t$kmemReal KiB\n"; echo str_repeat('-', 50), "\n"; }); echo "PHP Version:\t\t", phpversion(), "\n"; echo "Loop\t\t\t", get_class($loop), "\n"; echo "Time\t\t\t", date('r'), "\n"; echo str_repeat('-', 50), "\n"; $beginTime = time(); $loop->run(); $endTime = time(); $timeTaken = $endTime - $beginTime; echo "PHP Version:\t\t", phpversion(), "\n"; echo "Loop\t\t\t", get_class($loop), "\n"; echo "Time\t\t\t", date('r'), "\n"; echo "Time taken\t\t", $timeTaken, " seconds\n"; echo "Runs per second\t\t", round($runs / $timeTaken), "\n";