経緯
JJUG CCC 2023 fallのgatlingのやつをみて、試したくなったから
環境情報
- 日付: 2023-11-09T10:51:52.184Z
- Node.js: 18.15.0
- V8: 11.4.183.29-electron.0
- OS: Windows_NT x64 10.0.22621
テストするために作ったもの
https://github.com/suzaku-tec/GatlingSampleSver/tree/main
Apach Bench
※Windows前提
- Step1. xamppをインストール。
- Step2. xampp のインストールフォルダに入る: cd C:\xampp\apache\bin\ 。
- Step3. abコマンドを実行。
$ ./ab -n 100 -c 10 http://localhost:18081/gatling/top
This is ApacheBench, Version 2.3 <$Revision: 1903618 $>
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Licensed to The Apache Software Foundation, http://www.apache.org/
Benchmarking localhost (be patient).....done
Server Software:
Server Hostname: localhost
Server Port: 18081
Document Path: /gatling/top
Document Length: 60 bytes
Concurrency Level: 10
Time taken for tests: 0.029 seconds
Complete requests: 100
Failed requests: 0
Total transferred: 19300 bytes
HTML transferred: 6000 bytes
Requests per second: 3466.20 [#/sec] (mean)
Time per request: 2.885 [ms] (mean)
Time per request: 0.289 [ms] (mean, across all concurrent requests)
Transfer rate: 653.30 [Kbytes/sec] received
Connection Times (ms)
min mean[+/-sd] median max
Connect: 0 0 0.2 0 1
Processing: 0 2 1.6 2 7
Waiting: 0 2 1.4 2 6
Total: 0 2 1.6 2 7
Percentage of the requests served within a certain time (ms)
50% 2
66% 2
75% 3
80% 4
90% 6
95% 6
98% 6
99% 7
100% 7 (longest request)
感想
試すの自体は簡単だったが、準備が辛い。。。
gatlingも試そうと思ったが、簡単に構築できなさそうだったので、辞めた。。。
ドキュメント読み込むのが辛い