@@ -289,87 +289,7 @@ Worker::runAll();
289
289
Documentation:[ https://github.com/walkor/workerman-manual ] ( https://github.com/walkor/workerman-manual/blob/master/english/src/SUMMARY.md )
290
290
291
291
# Benchmarks
292
- ```
293
- CPU: Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz and 4 processors totally
294
- Memory: 8G
295
- OS: Ubuntu 14.04 LTS
296
- Software: ab
297
- PHP: 5.5.9
298
- ```
299
-
300
- ** Codes**
301
- ``` php
302
- <?php
303
- use Workerman\Worker;
304
-
305
- $worker = new Worker('tcp://0.0.0.0:1234');
306
- $worker->count = 3;
307
- $worker->onMessage = function ($connection, $data) {
308
- $connection->send("HTTP/1.1 200 OK\r\nConnection: keep-alive\r\nServer: workerman\r\nContent-Length: 5\r\n\r\nhello");
309
- };
310
-
311
- Worker::runAll();
312
- ```
313
- ** Result**
314
-
315
- ``` shell
316
- ab -n1000000 -c100 -k http://127.0.0.1:1234/
317
- This is ApacheBench, Version 2.3 < $Revision : 1528965 $>
318
- Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
319
- Licensed to The Apache Software Foundation, http://www.apache.org/
320
-
321
- Benchmarking 127.0.0.1 (be patient)
322
- Completed 100000 requests
323
- Completed 200000 requests
324
- Completed 300000 requests
325
- Completed 400000 requests
326
- Completed 500000 requests
327
- Completed 600000 requests
328
- Completed 700000 requests
329
- Completed 800000 requests
330
- Completed 900000 requests
331
- Completed 1000000 requests
332
- Finished 1000000 requests
333
-
334
-
335
- Server Software: workerman/3.1.4
336
- Server Hostname: 127.0.0.1
337
- Server Port: 1234
338
-
339
- Document Path: /
340
- Document Length: 5 bytes
341
-
342
- Concurrency Level: 100
343
- Time taken for tests: 7.240 seconds
344
- Complete requests: 1000000
345
- Failed requests: 0
346
- Keep-Alive requests: 1000000
347
- Total transferred: 73000000 bytes
348
- HTML transferred: 5000000 bytes
349
- Requests per second: 138124.14 [# /sec] (mean)
350
- Time per request: 0.724 [ms] (mean)
351
- Time per request: 0.007 [ms] (mean, across all concurrent requests)
352
- Transfer rate: 9846.74 [Kbytes/sec] received
353
-
354
- Connection Times (ms)
355
- min mean[+/-sd] median max
356
- Connect: 0 0 0.0 0 5
357
- Processing: 0 1 0.2 1 9
358
- Waiting: 0 1 0.2 1 9
359
- Total: 0 1 0.2 1 9
360
-
361
- Percentage of the requests served within a certain time (ms)
362
- 50% 1
363
- 66% 1
364
- 75% 1
365
- 80% 1
366
- 90% 1
367
- 95% 1
368
- 98% 1
369
- 99% 1
370
- 100% 9 (longest request)
371
-
372
- ` ` `
292
+ https://www.techempower.com/benchmarks/#section=data-r19&hw=ph&test=plaintext&l=zik073-1r
373
293
374
294
375
295
## Other links with workerman
0 commit comments