Skip to content

Commit

Permalink
Up the thresholds and rm sleep
Browse files Browse the repository at this point in the history
  • Loading branch information
Wout Feys committed Aug 14, 2024
1 parent a830a34 commit 441005e
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions benchmarks/flask-mysql-benchmarks.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,17 +30,17 @@ export const options = {
delayAbortEval: '10s',
}],
test_normal_route: [{
threshold: "avg<8",
threshold: "avg<20",
abortOnFail: true,
delayAbortEval: '10s',
}],
test_id_route: [{
threshold: "avg<8",
threshold: "avg<20",
abortOnFail: true,
delayAbortEval: '10s',
}],
test_open_file: [{
threshold: "avg<8",
threshold: "avg<20",
abortOnFail: true,
delayAbortEval: '10s',
}],
Expand Down Expand Up @@ -96,7 +96,6 @@ function route_test(trend, amount, route, method="GET", data=default_payload, st
let time_with_fw = measureRequest(BASE_URL_8086 + route, method, data, status)
let time_without_fw = measureRequest(BASE_URL_8087 + route, method, data, status)
trend.add(time_with_fw - time_without_fw)
sleep(0.001) // Sleep for 1ms to make sure there isn't any impact of the former request
}
}

Expand Down

0 comments on commit 441005e

Please sign in to comment.