This is a k6 extension using the xk6 system.
❗ This is a proof of concept, isn't supported by the k6 team, and may break in the future. USE AT YOUR OWN RISK! |
---|
To build a k6
binary with this extension, first ensure you have the prerequisites:
- Go toolchain
- Git
Then:
- Install
xk6
:
$ go install go.k6.io/xk6/cmd/xk6@latest
- Build the binary:
$ xk6 build --with github.com/dgzlopes/xk6-zmq@latest
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)
}