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
diff --git a/js/modules/k6/experimental/streams/clone-tests.sh b/js/modules/k6/experimental/streams/clone-tests.sh | |
new file mode 100755 | |
index 000000000..aadbb483b | |
--- /dev/null | |
+++ b/js/modules/k6/experimental/streams/clone-tests.sh | |
@@ -0,0 +1,12 @@ | |
+#!/bin/sh | |
+ | |
+mkdir -p tests | |
+cd tests |
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
// This code specifically uses commonJS as to be faster loading in k6 | |
// this can be changed after https://github.com/grafana/k6/issues/3265 | |
const http = require("k6/http"); | |
const crypto = require("k6/crypto"); | |
const execution = require("k6/execution"); | |
// saving the original values | |
const request = http.request; | |
const asyncRequest = http.asyncRequest; |
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
export const delay = (delayInms) => { | |
return new Promise(resolve => setTimeout(resolve, delayInms)); | |
} |
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
(function(e, a) { for(var i in a) e[i] = a[i]; }(exports, /******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) { | |
/******/ return installedModules[moduleId].exports; |
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 { getter, sequentialIndex, randomizedUniqueIndex, uniquePerScenario, uniquePerVU } from "./lib.js"; | |
import { SharedArray } from "k6/data"; | |
// this are here for easier configuration | |
const vuNumbers = 3; | |
const dataPoints = 10; | |
function generateDataFor(number) { | |
var result = new Array(number) | |
for (let i=0;i<number;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
? go.k6.io/k6 [no test files] | |
PASS | |
ok go.k6.io/k6/api 0.058s | |
? go.k6.io/k6/api/common [no test files] | |
PASS | |
ok go.k6.io/k6/api/v1 0.069s | |
? go.k6.io/k6/api/v1/client [no test files] | |
PASS | |
ok go.k6.io/k6/cloudapi 0.039s | |
PASS |
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
function decodeArrayBuffer() { | |
console.log("------decodeEncodeFails()--------------"); | |
const b64data = 'YAmMzu2PW2vfpUj22Dli4sk8I5muWlietj/gJR46gUIuWnswfaaT6XneRmP7oS34tUokHKAyL3jalq5cw7FFeA=='; | |
var a = Base64Binary.decodeArrayBuffer(b64data) | |
console.log(a.byteLength); | |
console.log(a.length); | |
let enc = base64ArrayBuffer(a); | |
console.log("before = " + b64data); | |
console.log("after = " + enc); |
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
<?xml version="1.0"?> | |
<testsuites tests="2" failures="0"> | |
<testsuite name="tresholds_junit.js" tests="2" failures="0"> | |
<testcase name="http_req_duration + p(95)<50"><failure message="failed" ></testcase> | |
<testcase name="http_req_duration{url:http://httpbin.org/post} + max<1000" > | |
</testsuite> | |
</testsuites> |
NewerOlder