├── Product
├──Open Source
├──Cloud
├──Pricing
├──Unit testing for performance
├──Integrations
├── Resources
├──k6 docs
This file contains 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
for (i = 0; i < inputFiles.length; i++) { | |
if (fs.lstatSync(srcDir + '/' + inputFiles[i]).isFile()) { | |
addFile(inputFiles[i]) | |
} | |
} |
This file contains 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
input "app" do | |
match "templates/**/*.handlebars" do | |
filter HandlebarsPrecompiler | |
filter ConcatFilter, "apptmp.js" | |
filter AddMicroLoader, :global => true | |
filter AddHandlebarsDependencies | |
end | |
This file contains 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"; | |
import {group} from "k6"; | |
import { Counter } from "k6/metrics"; | |
//adding these metrics to count each group execution | |
var group1Counter = new Counter("counter_group1"); | |
var group2Counter = new Counter("counter_group2"); |
This file contains 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 Ember from 'ember'; | |
export default Ember.Controller.extend({ | |
appName: 'Ember - Workaround to yield multiple blocks' | |
}); |
This file contains 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 { check, sleep } from 'k6'; | |
import http from 'k6/http'; | |
export let options = { | |
vus: 50, | |
duration: "3s" | |
}; | |
export default function() { | |
let res = http.get("https://test.k6.io/"); |
This file contains 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 { check, sleep } from 'k6'; | |
import http from 'k6/http'; | |
export let options = { | |
duration: "1m", | |
vus: 100 | |
} | |
export default function() { | |
let res; |
This file contains 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 { sleep } from "k6"; | |
import http from "k6/http"; | |
export let options = { | |
duration: "1m", | |
vus: 50, | |
thresholds: { | |
http_req_duration: ["p(95)<500"] | |
} | |
}; |
This file contains 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"; | |
import { sleep } from "k6"; | |
export let options = { | |
duration: '45s', | |
thresholds: { | |
"http_req_duration": ["p(99)<500"] | |
} | |
}; |
This file contains 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 {sleep} from "k6"; | |
import mainPageUserFlow from "../cases/main-page"; | |
import billingUserFlow from "../cases/billing"; | |
export let options = { | |
thresholds: { | |
"group_duration{group:::mainPageGroup}": ["p(99)<300"], | |
"group_duration{group:::billingGroup}": ["p(99)<300"] | |
} | |
}; |
NewerOlder