mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
perf(core): Batch raw insights save and add metadata cache (#14261)
Co-authored-by: Danny Martini <danny@n8n.io>
This commit is contained in:
committed by
GitHub
parent
1c2d48f7ee
commit
60afb46094
@@ -0,0 +1,19 @@
|
||||
import http from 'k6/http';
|
||||
import { check } from 'k6';
|
||||
|
||||
const apiBaseUrl = __ENV.API_BASE_URL;
|
||||
|
||||
export default function () {
|
||||
const urls = Array(10)
|
||||
.fill()
|
||||
.map((_, i) => `${apiBaseUrl}/webhook/multiple-webhook${i + 1}`);
|
||||
|
||||
const res = http.batch(urls);
|
||||
|
||||
for (let i = 0; i < res.length; i++) {
|
||||
// Check if the response status is 200
|
||||
check(res[i], {
|
||||
'is status 200': (r) => r.status === 200,
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user