We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 83749dd commit 80f5d73Copy full SHA for 80f5d73
examples/90-async-benchmark.php
@@ -0,0 +1,15 @@
1
+<?php
2
+
3
+use React\EventLoop\Loop;
4
+use React\Promise\CancellablePromiseInterface;
5
+use function React\Async\async;
6
+use function React\Async\await;
7
+use function React\Promise\Timer\sleep;
8
9
+require 'vendor' . DIRECTORY_SEPARATOR . 'autoload.php';
10
11
+ini_set('memory_limit', -1);
12
13
+for ($i = 0; $i < 1_000_000; $i++) {
14
+ async(static fn (): bool => true)();
15
+}
0 commit comments