uzulla / yusukebe_go-php-hono-template-benchmark

1 stars 0 forks source link

log #1

Open uzulla opened 4 months ago

uzulla commented 4 months ago
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5846.14     447.90    6420.45
  Latency       21.36ms     1.89ms    77.47ms
  HTTP codes:
    1xx - 0, 2xx - 58557, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    84.93MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      4555.96     396.81    5410.62
  Latency       27.41ms     1.52ms    47.45ms
  HTTP codes:
    1xx - 0, 2xx - 45648, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    66.53MB/s
✓ 15:31:40 (uzulla-tuned) ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git log |head
commit ed7dfa21d4d2ae5e9113b314b1a59718e130e4d4
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 15:13:52 2024 +0900

    php: bind mount nginx configs.

commit 99475b975259c8a6a945cc87086dd67f907e24d1
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 14:03:03 2024 +0900
uzulla commented 4 months ago

disable access log 正直一番効果がある

$ echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5859.87     426.66    6631.97
  Latency       21.31ms     1.59ms    62.04ms
  HTTP codes:
    1xx - 0, 2xx - 58695, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    85.14MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5331.41     712.14    6618.08
  Latency       23.42ms     2.51ms    67.23ms
  HTTP codes:
    1xx - 0, 2xx - 53429, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    77.87MB/s
uzulla commented 4 months ago

add preload

✓ 15:55:13 (uzulla-tuned) ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5849.89     471.08    6856.06
  Latency       21.35ms     2.09ms    81.28ms
  HTTP codes:
    1xx - 0, 2xx - 58590, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    84.99MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5612.33     488.16    6746.19
  Latency       22.25ms     0.97ms    39.33ms
  HTTP codes:
    1xx - 0, 2xx - 56237, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    81.93MB/s
✓ 15:55:40 (uzulla-tuned) ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git log |head
commit 2778a0fe0622e17761e605eca923f0c0867b2229
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 15:54:50 2024 +0900

    php: add preload

commit bf1bd2af15f53b452fdb55709f1846a179654c6d
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 15:41:23 2024 +0900
uzulla commented 4 months ago

add some params

$ echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
php: add more some params.
Statistics        Avg      Stdev        Max
  Reqs/sec      5296.89     457.92    9510.52
  Latency       23.59ms     1.98ms    82.56ms
  HTTP codes:
    1xx - 0, 2xx - 53038, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    76.91MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5649.43     517.94    6696.34
  Latency       22.10ms     1.06ms    40.77ms
  HTTP codes:
    1xx - 0, 2xx - 56599, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    82.51MB/s
✗ 15:59:21 {uzulla-tuned *} ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git log |head
commit 2778a0fe0622e17761e605eca923f0c0867b2229
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 15:54:50 2024 +0900

    php: add preload
uzulla commented 4 months ago

remove unnecessary fast cgi headers

echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; sleep 5 ; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5323.00     364.19    5942.47
  Latency       23.46ms     1.78ms    74.80ms
  HTTP codes:
    1xx - 0, 2xx - 53339, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    77.34MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5703.95     613.01    6791.06
  Latency       21.89ms     1.94ms    71.28ms
  HTTP codes:
    1xx - 0, 2xx - 57118, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    83.29MB/s
✓ 16:08:37 (uzulla-tuned) ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git log |head
commit 85ef90f869d19dd73084104eddb2d5fac821b60a
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 16:08:19 2024 +0900

    php: remove unnecessary fastcgi params
uzulla commented 4 months ago

add some cheat (Smarty aggressive tuning)

$ echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; sleep 5 ; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5300.57     424.09    6085.01
  Latency       23.54ms     2.14ms    83.57ms
  HTTP codes:
    1xx - 0, 2xx - 53142, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    77.07MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[=========================================================================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5968.22     518.62    6907.96
  Latency       20.92ms     3.08ms   100.84ms
  HTTP codes:
    1xx - 0, 2xx - 59783, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    87.18MB/s
✓ 16:20:43 {uzulla-tuned *} ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git commit -a
[uzulla-tuned 2c0b925] php: add some cheat.
 1 file changed, 6 insertions(+)
✓ 16:21:08 {uzulla-tuned} ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git log |head -5
commit 2c0b9251a13da0f46e4c0b98c2551a3c0eaa6d60
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 16:20:54 2024 +0900

    php: add some cheat.
uzulla commented 4 months ago

umm thermal ?

echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; sleep 5 ; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[============================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5920.28     489.90    6521.61
  Latency       21.09ms     2.61ms    96.65ms
  HTTP codes:
    1xx - 0, 2xx - 59305, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    86.03MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[============================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      6071.45     523.03    7385.01
  Latency       20.57ms     1.49ms    62.31ms
  HTTP codes:
    1xx - 0, 2xx - 60813, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    88.67MB/s
uzulla commented 4 months ago
echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; sleep 10; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[============================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5959.42     380.73    6786.24
  Latency       20.95ms     2.18ms    83.34ms
  HTTP codes:
    1xx - 0, 2xx - 59703, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    86.59MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[============================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      6076.50     521.92    6915.56
  Latency       20.55ms     1.62ms    64.81ms
  HTTP codes:
    1xx - 0, 2xx - 60858, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    88.73MB/s
✓ 23:59:36 (uzulla-tuned) ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git log |head -4
commit 2766e5ba81f00624e6fac64cadd358b2994b75be
Author: uzulla <uzulla@himitsukichi.com>
Date:   Sun Jun 23 23:53:18 2024 +0900
uzulla commented 4 months ago
$ echo "hono" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8082 ; sleep 10; echo "php" ; ~/bin/bombardier -c 125 --fasthttp http://localhost:8081
hono
Bombarding http://localhost:8082 for 10s using 125 connection(s)
[=============================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      5845.65     364.10    6456.01
  Latency       21.36ms     1.16ms    56.27ms
  HTTP codes:
    1xx - 0, 2xx - 58555, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    84.94MB/s
php
Bombarding http://localhost:8081 for 10s using 125 connection(s)
[=============================================================================================================================================================] 10s
Done!
Statistics        Avg      Stdev        Max
  Reqs/sec      6314.19     543.58    7709.75
  Latency       19.78ms     1.70ms    68.20ms
  HTTP codes:
    1xx - 0, 2xx - 63256, 3xx - 0, 4xx - 0, 5xx - 0
    others - 0
  Throughput:    92.19MB/s
✓ 00:15:36 {uzulla-tuned *} ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git commit -a
[uzulla-tuned 2b9b7bc] php: set events.mechanism = epoll
 1 file changed, 2 insertions(+)
✓ 00:15:59 (uzulla-tuned) ~/dev/yusukebe_go-php-hono-template-benchmark/php-app$ git log |head -3
commit 2b9b7bcc3e40a6e2e591f76634b6858564c3de95
Author: uzulla <uzulla@himitsukichi.com>
Date:   Mon Jun 24 00:15:44 2024 +0900