-
Notifications
You must be signed in to change notification settings - Fork 2
/
load.js
34 lines (33 loc) · 859 Bytes
/
load.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
export const loads = {
performance: {
getPostmanEcho: [
{ target: 5, duration: "5s" },
{ target: 20, duration: "5s" },
{ target: 5, duration: "5s" },
{ target: 20, duration: "5s" },
{ target: 0, duration: "5s" },
],
jsonPlaceholder: {
getPosts: [
{ target: 5, duration: "20s" },
{ target: 5, duration: "10s" },
{ target: 5, duration: "10s" },
],
createPosts: [
{ target: 5, duration: "20s" },
{ target: 5, duration: "10s" },
{ target: 5, duration: "10s" },
],
},
},
sanity: {
getPostmanEcho: [{ target: 1, duration: "5s" }],
jsonPlaceholder: {
getPosts: [{ target: 1, duration: "5s" }],
createPosts: [{ target: 1, duration: "5s" }],
},
},
};
export function get(env) {
return loads[env] || loads.sanity;
}