Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dgzlopes/xk6-zmq
A k6 extension for ZeroMQ.
https://github.com/dgzlopes/xk6-zmq
k6 k6-extension xk6 zeromq zmq
Last synced: about 2 months ago
JSON representation
A k6 extension for ZeroMQ.
- Host: GitHub
- URL: https://github.com/dgzlopes/xk6-zmq
- Owner: dgzlopes
- License: apache-2.0
- Archived: true
- Created: 2020-11-21T17:53:40.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-10-07T15:18:00.000Z (about 3 years ago)
- Last Synced: 2024-07-30T21:05:23.932Z (5 months ago)
- Topics: k6, k6-extension, xk6, zeromq, zmq
- Language: Go
- Homepage:
- Size: 5.08 MB
- Stars: 2
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# xk6-zmq
This is a [k6](https://go.k6.io/k6) extension using the [xk6](https://github.com/grafana/xk6) system.
| :exclamation: This is a proof of concept, isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK! |
|------|## Build
To build a `k6` binary with this extension, first ensure you have the prerequisites:
- [Go toolchain](https://go101.org/article/go-toolchain.html)
- GitThen:
1. Install `xk6`:
```shell
$ go install go.k6.io/xk6/cmd/xk6@latest
```2. Build the binary:
```shell
$ xk6 build --with github.com/dgzlopes/xk6-zmq@latest
```## Example
```javascript
import zmq from 'k6/x/zmq';const socket = zmq.newSocket("tcp://localhost:5555")
export default function () {
url.Send(socket,"foo")
}export function teardown () {
url.closeSocket(socket)
}
```