k6
k6 copied to clipboard
A modern load testing tool, using Go and JavaScript - https://k6.io
## initialize SharedArray in non init context There is nothing preventing us from just letting SharedArray be created outside of the init context, I think it was previous not technically...
Prompted by https://community.k6.io/t/ways-to-transfer-files-in-tests/1552 After https://github.com/k6io/k6/pull/1841, can we add an optional argument (e.g. `r`) to [`open()`](https://k6.io/docs/javascript-api/init-context/open-filepath-mode) that would allow us to have only a single copy in memory. Like a [`SharedArray`](https://k6.io/docs/javascript-api/k6-data/sharedarray),...
# What? This PR introduces the possibility to build a `k6-dev-tools` container that contributors/maintainers can use during the development. The idea is to keep "locked" the versions of the tools...
It seems that the console.log() doesn't do any shell escaping and therefore, the control characters can break the terminal output. ## Environment - k6 version: 0.28 - OS and version:...
## Feature Description With the introduction of xk6, it is likely that we'll start to get support questions or bug reports where users are running bespoke versions of k6. From...
[js/console.go](https://github.com/grafana/k6/blob/aa064148a11fa70defc300b513a5a20f7bf21868/js/console.go#L44) uses directly the `os` package while almost everything uses an abstraction such as `afero` We should be using afero across everything (until #1079) so this needs to change. This...
### Feature Description It would be cool to also support wasm for those that don’t want to us js. There is also the ability to transpire js to wasm now....
### Brief summary Short snippet: ```js import { uuidv4 } from 'https://jslib.k6.io/k6-utils/1.3.0/index.js' const X_REQUEST_ID = 'X-Request-Id' const fetch = (path, payload) => { const params = { headers: { [X_REQUEST_ID]:...
### Feature Description Add support for exporting metrics via OTLP in addition to Statsd ### Suggested Solution (optional) https://pkg.go.dev/go.opentelemetry.io/otel/exporters/otlp GO SDK ### Already existing or connected issues / PRs (optional)...
We currently define all possible emitted metrics as [shared global variables](https://github.com/loadimpact/k6/blob/master/lib/metrics/metrics.go). As [this ugly data race fix](https://github.com/loadimpact/k6/commit/f157788f366a880249bbdf6a82d045d245565911#diff-cfd4da29308a83fc01fc28fae9be4bbaR322) shows, that's probably not a very good idea, since the `stats.Metric` struct seems...