Skip to content
Merged

Dev2 #152

Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
docs: update
  • Loading branch information
wchaws committed Oct 31, 2022
commit 1c12838288bbdd4f370d6261af2be33c4e5b4e8d
11 changes: 10 additions & 1 deletion source/new-image-handler/test/bench/README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,19 @@
# Benchmark test

## curl.sh make http requests to urls in parallel
## curl.sh: make http requests to urls in parallel

```
# edit urls.txt

$ ./curl.sh urls.txt
$ N=10 ./curl.sh urls.txt # make 10 http requests simultaneously
```

## vegeta: http load test tools

install https://github.com/tsenart/vegeta firstly

```
# edit vegeta-urls.txt
cat vegeta-urls.txt | vegeta attack -duration=1m -rate=300 -timeout=300s -format=http | vegeta report
```
1 change: 1 addition & 0 deletions source/new-image-handler/test/bench/vegeta-urls.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GET http://<HOST>/example.jpg?x-oss-process=image/resize,s_300/quality,q_80/auto-orient,0/interlace,1/format,jpg