ตอบ

Warning: this topic has not been posted in for at least 120 days.
Unless you're sure you want to reply, please consider starting a new topic.
ชื่อ:
อีเมล์:
หัวข้อ:
ไอค่อนข้อความ:

แนบไฟล์:
(Clear Attachment)
(แนบไฟล์เพิ่ม)
Restrictions: 4 per post, maximum total size 1024KB, maximum individual size 512KB
Verification:
Type the letters shown in the picture
Listen to the letters / Request another image

Type the letters shown in the picture:
โปรแกรมฝึกพิมพ์ยอดนิยมในยุค 8088 (ดวงจั????):

shortcuts: กด alt+s เพื่อตั้งกระทู้ หรือ alt+p แสดงตัวอย่าง


สรุปหัวข้อ

ข้อความโดย: อั๋น ทรงวุฒิ
« เมื่อ: 04 เมษายน 2022, 12:00:06 PM »

อ้างถึง
https://github.com/wg/wrk

git clone https://github.com/wg/wrk
cd wrk
make
sudo mv wrk /usr/local/bin

wrk -t12 -c400 -d30s http://127.0.0.1:8080/index.html

ยิง request 30 วินาที โดยใช้ 12 threads แล้วเช็คสถิติ
This runs a benchmark for 30 seconds, using 12 threads, and keeping 400 HTTP connections open.
ข้อความโดย: อั๋น ทรงวุฒิ
« เมื่อ: 16 กรกฎาคม 2021, 04:12:28 PM »

อ้างถึง
https://github.com/mlazarov/ddos-stress

git clone https://github.com/mlazarov/ddos-stress.git

cd ddos-stress

npm install ddos-stress
node server.js

เปิดอีก tab แล้วรัน
node node.js

เข้า Browser localhost:3000/

ใส่ url เลือกสัก 1000req แล้ว start ไปเลย

ให้สังเกตอัตรา success
ข้อความโดย: อั๋น ทรงวุฒิ
« เมื่อ: 16 กรกฎาคม 2021, 01:38:24 PM »

เราทำเว็บสักตัวนึง อยากรู้ว่าโดน Request ได้มากแค่ไหน
สามารถใช้ autocannon ทดสอบได้ครับ

อ้างถึง
https://github.com/mcollina/autocannon



autocannon -c100 -d5 p 10 http://localhost:3000