xk6-disruptor is a k6 extension. You have to run a k6 version built with the disruptor extension to use the disruptor APIs in your k6 tests.
The following sections explain the different options to get this custom binary.
Download a release binary
The quickest way to get started is to download a release binary from GitHub.
Build from source
You can also use xk6 to build a k6 binary.
To find out more about how to use xk6 or what it is, check out this guide - Build a k6 binary using Go.
To build the k6 binary with the xk6-disruptor extension:
Linux/MacOS
xk6 will create the xk6-disruptor binary in the current working directory.