The swperftest utility can be used on Linux and macOS to test SwiftRNG performance.

Make sure the swperftest utility is successfully built with make. Plug the SwiftRNG device in a USB port.

For the swperftest utility, run the following command:

sudo swperftest

swperftest will discover all of the SwiftRNG devices connected to the system, run general device performance test and, report the random number generation speed in megabits per second.

The output may look similar to this:

sudo swperftest
------------------------------------------------------------
-- swperftest - SwiftRNG device performance test utility  --
------------------------------------------------------------
Searching for devices ------------------ found 1 SwiftRNG device(s)


Testing SwiftRNG with S/N: 1434A2BE0380D34 version: V1.1
Opening device -------------------------------------------- Success
Setting power profiles to 9 ------------------------------- Success
Performance ------- in progress ------------------ 100.00 Mbits/sec
Closing device -------------------------------------------- Success

-------------------------------------------------------------------