https://github.com/grafana/xk6-timers
https://github.com/grafana/xk6-timers
k6 xk6
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/grafana/xk6-timers
- Owner: grafana
- License: apache-2.0
- Created: 2022-03-11T14:29:32.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-12T15:33:54.000Z (over 1 year ago)
- Last Synced: 2024-09-28T15:02:10.635Z (8 months ago)
- Topics: k6, xk6
- Language: Go
- Homepage:
- Size: 78.1 KB
- Stars: 7
- Watchers: 5
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# xk6-timers
> [!WARNING]
> Starting k6 version v0.51 the code of the `k6/x/timers` extension is part of the [main k6 repository](https://github.com/grafana/k6). It can be used without any imports as in other js runtimes, or by importing `k6/timers`. Please contribute and [open issues there](https://github.com/grafana/k6/issues). This repository is no longer maintained.This extension adds a PoC implementation of setTimeout and friends based on code by @na--
It is implemented using the [xk6](https://k6.io/blog/extending-k6-with-xk6/) system.
## Getting started
1. Install `xk6`:
```shell
$ go install go.k6.io/xk6/cmd/xk6@latest
```2. Build the binary:
```shell
$ xk6 build --with github.com/grafana/xk6-timers
```## Examples
See ./mdn_example.js