- Install
k6 - Write following js file (for example):
import http from 'k6/http';
import { sleep } from 'k6';
export const options = {
thresholds: {
http_req_duration: ['p(99)<1500'], // 99% of requests must complete below 1.5s
},| function FindProxyForURL(url, host) { | |
| return "PRXY https://xrayf.hspace.ir:8888"; | |
| } |
| package main | |
| import ( | |
| "context" | |
| "errors" | |
| "log" | |
| "time") | |
| var totalInventory int |
k6import http from 'k6/http';
import { sleep } from 'k6';
export const options = {
thresholds: {
http_req_duration: ['p(99)<1500'], // 99% of requests must complete below 1.5s
},| /* stylish theme, this style should apply on the domain: ldoceonline.com in stylish settings */ | |
| /* hide google adds */ | |
| iframe,.footer,.quizzes,.share_panel,.topslot-container, | |
| .exercises,.logo_link,.text_welcome,.home_content+.carousel, | |
| #iotd{ | |
| display: none!important; | |
| } | |
| .header{ | |
| text-align: center; |
| import "github.com/go-ozzo/ozzo-validation/v4" | |
| // Translator is the interface that need to be implemented if we | |
| // need to error translation feature. | |
| type Translator interface { | |
| TranslateStructFieldErr(field string, err validation.Error) (string, error) | |
| TranslateSingleFieldErr(err validation.Error) (string, error) | |
| } | |
| // Translate get a translator that must implemented Translator and |
| // usage: update dbName,objectStoreName,keyVal and then update data in updateDoc function,finally return doc. | |
| (function () { | |
| let dbName = "db_name"; | |
| let dbVersion = 4 | |
| let objectStoreName = "object_store_name" | |
| let keyVal = "object_key_val" | |
| // Change doc and return it. | |
| let getUpdatedDoc = function (doc) { | |
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/