diff --git a/tests/benchmarks/graphql/account/graphql-full-selection.js b/tests/benchmarks/graphql/account/graphql-full-selection.js new file mode 100644 index 0000000000..84d41328d6 --- /dev/null +++ b/tests/benchmarks/graphql/account/graphql-full-selection.js @@ -0,0 +1,30 @@ +import http from 'k6/http'; +export const options = { + vus: 20, + duration: '60s', +}; +export default function () { + http.post('http://localhost/v1/graphql', JSON.stringify({ + query: `query { + accountGet { + _id + _createdAt + _updatedAt + name + registration + status + passwordUpdate + email + phone + emailVerification + phoneVerification + } + }` + }), { + headers: { + 'Content-Type': 'application/json', + 'X-Appwrite-Project': 'test', + 'Cookie': '' + } + }) +} \ No newline at end of file diff --git a/tests/benchmarks/graphql/account/graphql-selection-set.js b/tests/benchmarks/graphql/account/graphql-selection-set.js new file mode 100644 index 0000000000..fd605121e9 --- /dev/null +++ b/tests/benchmarks/graphql/account/graphql-selection-set.js @@ -0,0 +1,16 @@ +import http from 'k6/http'; +export const options = { + vus: 20, + duration: '60s', +}; +export default function () { + http.post('http://localhost/v1/graphql', JSON.stringify({ + query: `query { accountGet { _id email } }` + }), { + headers: { + 'Content-Type': 'application/json', + 'X-Appwrite-Project': 'test', + 'Cookie': '' + } + }) +} \ No newline at end of file diff --git a/tests/benchmarks/graphql/account/rest.js b/tests/benchmarks/graphql/account/rest.js new file mode 100644 index 0000000000..04037c28f1 --- /dev/null +++ b/tests/benchmarks/graphql/account/rest.js @@ -0,0 +1,14 @@ +import http from 'k6/http'; +export const options = { + vus: 20, + duration: '60s', +}; +export default function () { + http.get('http://localhost/v1/account', { + headers: { + 'Content-Type': 'application/json', + 'X-Appwrite-Project': 'test', + 'Cookie': '' + } + }) +} \ No newline at end of file diff --git a/tests/benchmarks/graphql/graphql-batched.js b/tests/benchmarks/graphql/locale/graphql-batched.js similarity index 100% rename from tests/benchmarks/graphql/graphql-batched.js rename to tests/benchmarks/graphql/locale/graphql-batched.js diff --git a/tests/benchmarks/graphql/graphql-full-selection.js b/tests/benchmarks/graphql/locale/graphql-full-selection.js similarity index 100% rename from tests/benchmarks/graphql/graphql-full-selection.js rename to tests/benchmarks/graphql/locale/graphql-full-selection.js diff --git a/tests/benchmarks/graphql/graphql-selection-set.js b/tests/benchmarks/graphql/locale/graphql-selection-set.js similarity index 100% rename from tests/benchmarks/graphql/graphql-selection-set.js rename to tests/benchmarks/graphql/locale/graphql-selection-set.js diff --git a/tests/benchmarks/graphql/rest-serial.js b/tests/benchmarks/graphql/locale/rest-serial.js similarity index 100% rename from tests/benchmarks/graphql/rest-serial.js rename to tests/benchmarks/graphql/locale/rest-serial.js diff --git a/tests/benchmarks/graphql/rest.js b/tests/benchmarks/graphql/locale/rest.js similarity index 100% rename from tests/benchmarks/graphql/rest.js rename to tests/benchmarks/graphql/locale/rest.js