mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add account benchmarks
This commit is contained in:
@@ -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': ''
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -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': ''
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -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': ''
|
||||
}
|
||||
})
|
||||
}
|
||||
Reference in New Issue
Block a user