This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import http from 'k6/http'; | |
| export const options = { | |
| vus: 100, | |
| // iterations: 1000, | |
| duration: '30s', | |
| thresholds: { | |
| http_req_failed: [{ | |
| threshold: 'rate<0.2', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "net/http" | |
| "time" | |
| ) | |
| func hello(w http.ResponseWriter, req *http.Request) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT | |
| c.relname, | |
| a.grantor::regrole, | |
| a.grantee::regrole, | |
| c.relowner::regrole, | |
| array_agg(a.privilege_type ORDER BY a.privilege_type) AS privileges | |
| FROM | |
| pg_class c | |
| JOIN pg_namespace n ON c.relnamespace = n.oid | |
| LEFT JOIN aclexplode(c.relacl) AS a ON TRUE |
OlderNewer