8000 Response Duration & Cookies & Fixes & Remote URL Payload by fatihbaltaci · Pull Request #193 · getanteon/anteon · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Response Duration & Cookies & Fixes & Remote URL Payload #193

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 118 commits into from
May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
970b46e
start test-wide assertion structure
kenanfarukcakir Feb 27, 2023
e077172
implement abort logic
kenanfarukcakir Feb 28, 2023
f15d106
store iteration times cumulatively
kenanfarukcakir Feb 28, 2023
9647f4e
keep failcount in assertion service
kenanfarukcakir Feb 28, 2023
c29ab79
duplicate result chans, add fail count
kenanfarukcakir Feb 28, 2023
4fe3bf8
fix hammer tests
kenanfarukcakir Mar 1, 2023
6195f04
add test-wide identifiers
kenanfarukcakir Mar 1, 2023
4be3e66
add fail_count_perc
kenanfarukcakir Mar 1, 2023
3a1c749
add avg min max funcs
kenanfarukcakir Mar 1, 2023
63d9bcf
add percentile funcs
kenanfarukcakir Mar 1, 2023
ec7f438
single mode
kenanfarukcakir Mar 1, 2023
658b221
signle mode on hammer tests
kenanfarukcakir Mar 1, 2023
9f6f251
stdout-json listens to test assertion result
kenanfarukcakir Mar 2, 2023
9656450
os exit 1 at main in case of test fail
kenanfarukcakir Mar 2, 2023
7c906ac
stdout test status
kenanfarukcakir Mar 2, 2023
ac9c903
print test status stdout
kenanfarukcakir Mar 3, 2023
ef1185b
print f 8000 ailed assertions test wide
kenanfarukcakir Mar 3, 2023
794f2f2
add test for engine aborted result
kenanfarukcakir Mar 6, 2023
05e14a7
Merge remote-tracking branch 'origin/develop' into feat/assertion-2
kenanfarukcakir Mar 6, 2023
8943890
test exit status on abort
kenanfarukcakir Mar 6, 2023
4d91a84
move exit status test to exclude windows from go build
kenanfarukcakir Mar 6, 2023
ccfe5b9
add tests for min max avg funcs
kenanfarukcakir Mar 6, 2023
2c1383c
argument tests for assertion funcs
kenanfarukcakir Mar 6, 2023
27895a8
add test for percentile, unsorted
kenanfarukcakir Mar 6, 2023
abb8a95
keep iteration time array sorted
kenanfarukcakir Mar 7, 2023
11bd72e
run assertion service only if rules are given
kenanfarukcakir Mar 7, 2023
53c88b8
revert
kenanfarukcakir Mar 7, 2023
5961a05
test assertions enabled check
kenanfarukcakir Mar 7, 2023
7be6ed9
assertion enabled func
kenanfarukcakir Mar 7, 2023
eaa6357
delete reduntant exp
kenanfarukcakir Mar 7, 2023
4c61d1e
inject initialized services to engine
kenanfarukcakir Mar 8, 2023
473d933
divide assertion service interface
kenanfarukcakir Mar 8, 2023
7f35c2b
result listener done chan
kenanfarukcakir Mar 8, 2023
52ca252
add greater_than func for assertion
kenanfarukcakir Mar 8, 2023
b19d110
update testAssertionResult
kenanfarukcakir Mar 27, 2023
651d0be
start cookie manager
kenanfarukcakir Apr 4, 2023
b9548a8
add test for cookie in repeated mode
kenanfarukcakir Apr 4, 2023
c33ac07
read custom cookies from config
kenanfarukcakir Apr 4, 2023
bbe0605
opt func for cookie set
kenanfarukcakir Apr 4, 2023
ddf1cce
set initial cookies
kenanfarukcakir Apr 5, 2023
1a8eeb4
set client count to 1 in debug mode
kenanfarukcakir Apr 5, 2023
a255b4e
add cookies for step assertion
kenanfarukcakir Apr 5, 2023
b594b57
only allow cookies in user modes
kenanfarukcakir Apr 6, 2023
ee1e6ec
fix test
kenanfarukcakir Apr 6, 2023
c053207
parse raw cookie
kenanfarukcakir Apr 6, 2023
5519901
add tests for cookies
kenanfarukcakir Apr 6, 2023
17f7d99
add test for setting initial cookies
kenanfarukcakir Apr 6, 2023
9be0c5f
test cookie expires check
kenanfarukcakir Apr 6, 2023
b8f4bce
add time func and compare
kenanfarukcakir Apr 6, 2023
0bbdd9a
add tests for cookie assert
kenanfarukcakir Apr 6, 2023
d7040b4
capture cookie
kenanfarukcakir Apr 7, 2023
3d004df
Merge remote-tracking branch 'origin/develop' into feat/assertion-2
kenanfarukcakir Apr 10, 2023
11d57af
add quote on interpreter
kenanfarukcakir Apr 10, 2023
028e9ff
add object type to interpreter
kenanfarukcakir Apr 11, 2023
87a66bf
update readme
kenanfarukcakir Apr 11, 2023
7487b11
readme
kenanfarukcakir Apr 11, 2023
af190aa
add to config json
kenanfarukcakir Apr 11, 2023
106fa76
refactor channel directions
kenanfarukcakir Apr 11, 2023
d8d0085
add tests for stdout-json and assert funcs
kenanfarukcakir Apr 11, 2023
b764f18
readme
kenanfarukcakir Apr 12, 2023
ca908b8
fix race on response read dur
kenanfarukcakir Apr 27, 2023
ec15955
use channel approach in trace
kenanfarukcakir Apr 29, 2023
0692d5d
change ch close location
kenanfarukcakir May 1, 2023
6b73c9c
add mutex for ch close
kenanfarukcakir May 1, 2023
8e73bc0
add timer for channel close
kenanfarukcakir May 1, 2023
f86e85d
add mutex for get operation on channels to be atomic
kenanfarukcakir May 2, 2023
30fde18
remove unnecessary print
kenanfarukcakir May 2, 2023
ddd8822
remove randomCity from benchmark tests
kenanfarukcakir May 2, 2023
a134c56
update jenkins benchmark
kenanfarukcakir May 2, 2023
0bc5301
return immediately from trace hooks
kenanfarukcakir May 2, 2023
32b4ee0
set benchtime to 3
kenanfarukcakir May 2, 2023
adaab80
set benctime to 3
kenanfarukcakir May 2, 2023
12e6692
resolve conflict
kenanfarukcakir May 2, 2023
51a46b5
run benchmark processes N times
kenanfarukcakir May 2, 2023
47b638e
set benchmark timeout to 1h
kenanfarukcakir May 2, 2023
c33ff3a
run whole benchmark N times and modify cpu thresholds
kenanfarukcakir May 3, 2023
0d35e00
undo last commit
kenanfarukcakir May 3, 2023
19688c1
Merge remote-tracking branch 'origin/develop' into fix/resp-duration-bug
kenanfarukcakir May 3, 2023
e4f7327
run only one benchmark test for multipart, run N times for rest
kenanfarukcakir May 3, 2023
0ee2975
lower timeout on multipart test
kenanfarukcakir May 3, 2023
53be3c3
remove alpha from benchstat temporarily, increase N for multipart
kenanfarukcakir May 3, 2023
f075370
remove -c flag on go test
kenanfarukcakir May 3, 2023
8029fcc
add alpha to benchstat
kenanfarukcakir May 3, 2023
f240dae
update benchstat script
kenanfarukcakir May 3, 2023
774aded
Merge pull request #191 from ddosify/fix/resp-duration-bug
fatihbaltaci May 4, 2023
f8a18c6
Add Recommended System Requirements to selfhosted
fatihbaltaci May 4, 2023
70d78ad
update readme
kenanfarukcakir May 5, 2023
b47adbe
merge develop
kenanfarukcakir May 5, 2023
c366e6a
merge develop
kenanfarukcakir May 5, 2023
9f765e5
Merge pull request #147 from ddosify/feat/assertion-2
fatihbaltaci May 5, 2023
78edf8a
merge develop
kenanfarukcakir May 5, 2023
871f6ec
fix test
kenanfarukcakir May 5, 2023
16fbcbd
update readme for cookies
kenanfarukcakir May 5, 2023
7960b9e
update client timeout on user modes
kenanfarukcakir May 7, 2023
3b87b3f
Merge pull request #194 from ddosify/fix/client-timeout
fatihbaltaci May 7, 2023
9a7f9b0
classify 'Client.Timeout exceeded while awaiting headers' as connTimeout
kenanfarukcakir May 7, 2023
c0529dd
Merge pull request #195 from ddosify/feat/classify-timeout-err
fatihbaltaci May 7, 2023
4bb8787
Merge remote-tracking branch 'origin/develop' into feat/cookie-manager
fatihbaltaci May 8, 2023
eed8ace
Update readme & add examples
fatihbaltaci May 8, 2023
7310c69
Fix test
fatihbaltaci May 8, 2023
35b738f
Update readme
fatihbaltaci May 8, 2023
f908f50
Update readme
fatihbaltaci May 8, 2023
2203b79
Update readme
fatihbaltaci May 8, 2023
3e240dd
Merge pull request #167 from ddosify/feat/cookie-manager
fatihbaltaci May 8, 2023
6d18c5e
Update img links for benchmark
fatihbaltaci May 8, 2023
93d293b
Update assertion 2 stdout format
fatihbaltaci May 8, 2023
612ac58
Update readme
fatihbaltaci May 8, 2023
1617e1d
refactor report
kenanfarukcakir May 9, 2023
a7b1aa6
replace assertions field to success_criterias
kenanfarukcakir May 9, 2023
6dbee88
Update readme for success criteria
fatihbaltaci May 9, 2023
4c097d2
Change multipart img path
fatihbaltaci May 9, 2023
832110f
Update readme
fatihbaltaci May 9, 2023
6abdddd
Update readme
fatihbaltaci May 9, 2023
6234901
add support for remote url on payload_file
kenanfarukcakir May 10, 2023
54ec43d
Add verbosity on file downloads
fatihbaltaci May 10, 2023
e1bab93
Merge pull request #197 from ddosify/feat/remote-url-payload
fatihbaltaci May 10, 2023
a4e3b6c
show failed criterias on debug mode
kenanfarukcakir May 10, 2023
f835fec
Merge pull request #198 from ddosify/feat/show-criterias-on-debug
fatihbaltaci May 10, 2023
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
4 changes: 3 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@
"extensions": [
"golang.Go",
"eamodio.gitlens",
"premparihar.gotestexplorer"
"premparihar.gotestexplorer",
"GitHub.copilot",
"GitHub.copilot-labs"
]
}
},
Expand Down
4 changes: 2 additions & 2 deletions Jenkinsfile_benchmark
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ pipeline {
stage('Performance Test') {
steps {
lock('multi_branch_server_benchmark') {
sh 'set -o pipefail && GOCACHE=/tmp/ go test -benchmem -benchtime=1x -cpuprof=cpu.out -memprof=mem.out -tracef=trace.out -run=^$ -bench ^BenchmarkEngines/$ -count 1 | tee gobench_branch.txt'
sh 'set -o pipefail && GOCACHE=/tmp/ go test -benchmem -timeout 60m -benchtime=1x -cpuprof=cpu.out -memprof=mem.out -tracef=trace.out -run=^$ -bench ^BenchmarkEngines/$ -count 1 -runN=10 | tee gobench_branch.txt'
}
}
}
Expand All @@ -29,7 +29,7 @@ pipeline {
}
steps {
lock('multi_branch_server_benchmark') {
sh 'git fetch origin develop:develop || git checkout develop && git pull && set -o pipefail && GOCACHE=/tmp/ go test -benchmem -benchtime=1x -cpuprof=cpu_develop.out -memprof=mem_develop.out -tracef=trace_develop.out -run=^$ -bench ^BenchmarkEngines/$ -count 1 | tee gobench_develop.txt'
sh 'git fetch origin develop:develop || git checkout develop && git pull && set -o pipefail && GOCACHE=/tmp/ go test -benchmem -timeout 60m -benchtime=1x -cpuprof=cpu_develop.out -memprof=mem_develop.out -tracef=trace_develop.out -run=^$ -bench ^BenchmarkEngines/$ -count 1 -runN=10 | tee gobench_develop.txt'
sh "git checkout ${BRANCH_NAME}"
sh "benchstat -alpha 1.01 --sort delta gobench_develop.txt gobench_branch.txt | tee gobench_branch_result.txt"
sh "benchstat -alpha 1.01 --sort delta --html gobench_develop.txt gobench_branch.txt > 00_gobench_result.html && echo ${BUILD_URL}artifact/00_gobench_result.html"
Expand Down
16 changes: 14 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,28 @@
<a href="https://hub.docker.com/r/ddosify/ddosify" target="_blank"><img src="https://img.shields.io/docker/v/ddosify/ddosify?style=for-the-badge&logo=docker&label=docker&sort=semver" alt="ddosify docker image" /></a>
</p>

## Ddosify Self-Hosted (Distributed, No-code UI)
## Ddosify Self-Hosted (Distributed, No-code UI): [More →](./selfhosted/README.md)
<p align="center">
<img src="https://imagedelivery.net/jnIqn6NB1gbMLXIvlYKo5A/c6f26a7b-b878-4af7-774e-b0d65935df00/public" alt="Ddosify - Self-Hosted" />
</p>

## Ddosify Engine (Single node, usage on CLI)
### Quick Start

```bash
curl -sSL https://raw.githubusercontent.com/ddosify/ddosify/master/selfhosted/install.sh | bash
```

## Ddosify Engine (Single node, usage on CLI): [More →](./engine_docs/README.md)
<p align="center">
<img src="https://imagedelivery.net/jnIqn6NB1gbMLXIvlYKo5A/68e07b5f-22a5-4244-5dc2-9d02bd2c9e00/public" alt="Ddosify - Engine" />
</p>

### Quick Start

```bash
docker run -it --rm ddosify/ddosify ddosify -t https://app.servdown.com
```

## What is Ddosify?
Ddosify is a comprehensive performance testing platform, designed specifically to evaluate backend load and latency. It offers three distinct deployment options to cater to various needs: Ddosify Engine, Ddosify Self-Hosted, and Ddosify Cloud.

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@
"src": "remote",
"name": "image",
"type": "file",
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/vijzOnuqKiOkAWzAFo1wsGpdhk4M1DSGx99MIzPzufs/56_mv_1082778177_1681206249576109599_440.jpg"
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/tVGNdwRxwB-GvQth9mqKITzq28-suX6R3BzvrSH9rWo/random_image.png"
},
{
"name": "ballot_id",
"value": "{{sandikID}}"
},
{
"name": "dynamic_city",
"value": "{{_randomCity}}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"src": "remote",
"name": "image",
"type": "file",
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/vijzOnuqKiOkAWzAFo1wsGpdhk4M1DSGx99MIzPzufs/56_mv_1082778177_1681206249576109599_440.jpg"
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/tVGNdwRxwB-GvQth9mqKITzq28-suX6R3BzvrSH9rWo/random_image.png"
},
{
"name": "ballot_id",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,18 @@
"headers": {
"Content-Type": "multipart/form-data"
},
"timeout": 30,
"timeout": 15,
"capture_env": {},
"payload_multipart": [
{
"src": "remote",
"name": "image",
"type": "file",
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/vijzOnuqKiOkAWzAFo1wsGpdhk4M1DSGx99MIzPzufs/56_mv_1082778177_1681206249576109599_440.jpg"
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/tVGNdwRxwB-GvQth9mqKITzq28-suX6R3BzvrSH9rWo/random_image.png"
},
{
"name": "ballot_id",
"value": "{{sandikID}}"
},
{
"name": "dynamic_city",
"value": "{{_randomCity}}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@
"src": "remote",
"name": "image",
"type": "file",
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/vijzOnuqKiOkAWzAFo1wsGpdhk4M1DSGx99MIzPzufs/56_mv_1082778177_1681206249576109599_440.jpg"
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/tVGNdwRxwB-GvQth9mqKITzq28-suX6R3BzvrSH9rWo/random_image.png"
},
{
"name": "ballot_id",
"value": "{{sandikID}}"
},
{
"name": "dynamic_city",
"value": "{{_randomCity}}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@
"src": "remote",
"name": "image",
"type": "file",
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/vijzOnuqKiOkAWzAFo1wsGpdhk4M1DSGx99MIzPzufs/56_mv_1082778177_1681206249576109599_440.jpg"
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/tVGNdwRxwB-GvQth9mqKITzq28-suX6R3BzvrSH9rWo/random_image.png"
},
{
"name": "ballot_id",
"value": "{{sandikID}}"
},
{
"name": "dynamic_city",
"value": "{{_randomCity}}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@
"src": "remote",
"name": "image",
"type": "file",
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/vijzOnuqKiOkAWzAFo1wsGpdhk4M1DSGx99MIzPzufs/56_mv_1082778177_1681206249576109599_440.jpg"
"value": "https://ddosify-backend-storage.s3.amazonaws.com/media/staging/multipart/tVGNdwRxwB-GvQth9mqKITzq28-suX6R3BzvrSH9rWo/random_image.png"
},
{
"name": "ballot_id",
"value": "{{sandikID}}"
},
{
"name": "dynamic_city",
"value": "{{_randomCity}}"
}
]
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"url": "http://localhost:8080/hello",
"method": "GET",
"capture_env": {
"NUM" :{ "from":"body","json_path":"num"}
"NUM" :{ "from":"body","json_path":"num"},
"X_COOKIE" :{ "from":"cookies","cookie_name":"x"}
}
},
{
Expand Down
35 changes: 35 additions & 0 deletions config/config_testdata/config_init_cookies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"iteration_count": 1555,
"load_type": "waved",
"duration": 21,
"steps": [
{
"id": 1,
"name": "Example Name 1",
"url": "https://app.servdown.com/accounts/login/?next=/",

"method": "GET",
"payload": "payload str",
"timeout": 3,
"sleep": "1000",
"others": {
}
}
],
"output": "stdout",
"engine_mode": "distinct-user",
"cookie_jar":{
"enabled" : true,
"cookies" :[
{
"name": "platform",
"value": "web",
"domain": "httpbin.ddosify.com",
"path": "/",
"expires": "Thu, 16 Mar 2023 09:24:02 GMT",
"http_only": true,
"secure": false
}
]
}
}
34 changes: 34 additions & 0 deletions config/config_testdata/config_invalid_user_mode_for_cookies.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"iteration_count": 1555,
"load_type": "waved",
"duration": 21,
"steps": [
{
"id": 1,
"name": "Example Name 1",
"url": "https://app.servdown.com/accounts/logi E4F2 n/?next=/",

"method": "GET",
"payload": "payload str",
"timeout": 3,
"sleep": "1000",
"others": {
}
}
],
"output": "stdout",
"cookie_jar":{
"enabled" : true,
"cookies" :[
{
"name": "platform",
"value": "web",
"domain": "httpbin.ddosify.com",
"path": "/",
"expires": "Thu, 16 Mar 2023 09:24:02 GMT",
"http_only": true,
"secure": false
}
]
}
}
28 changes: 28 additions & 0 deletions config/config_testdata/config_test_assertion_fail.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"iteration_count": 100,
"load_type": "linear",
"duration": 10,
"debug" : false,
"success_criterias": [
{
"rule" : "false",
"abort" : true,
"delay" : 1
}
],
"steps": [
{
"id": 1,
"url": "https://httpbin.ddosify.com/json2",
"name": "JSON",
"method": "GET",
"others": {
"h2": false,
"keep-alive": true,
"disable-redirect": true,
"disable-compression": false
},
"timeout": 2
}
]
}
Loading
0