Latency and Performance Benchmarks

What a pipeline costs in time has two parts. The latency a sample pays is chosen more than suffered: the frame size, the event margin, OSCAR and your own filters each add a known amount, and Real-Time Performance adds them up. This page holds what was measured: how precisely events land on the signal, how evenly frames arrive, how true each device’s clock runs, how fast a lost device is reported, and how well two machines agree.

How to read this page

Where the numbers come from. g.Pype’s hardware test tier runs the Generator and the amplifiers on three machines and keeps a record of every run, under integration/results/ in the repository. The machines: a Windows PC (x64, Python 3.13), a Mac mini with Apple silicon (Python 3.13) and a Linux laptop (x86-64, Python 3.14). Every cell below is one run: where a device was run more than once on a machine, the best of its passing runs by the table’s own number, and for most amplifier cells the only run; the Generator has 7 to 16 runs per machine. The runs are from 2026-10-06 to 2026-10-08, on development builds of 4.1.0 after its ninth release candidate. Nothing is averaged. The gCore’s runs, at 500 Hz, are in the records and not on this page. In each table the best cell is marked green and the worst red.

Definitions. A sample is one value per channel; the sample period is its duration, 4 ms at 250 Hz, 3.9 ms at 256 Hz. An event is a marker, a key or a datagram; it carries the host instant it was first seen. The pipeline places an event on the sample whose period contains that instant, so a placed event is never later than its own sample and up to one period earlier. An event’s offset is the time of the sample it landed on minus the instant it was sent; it lies between minus one period and zero when the event is on its own sample, and further out when it is not. A frame is the block of samples a source emits at once; the frame period is the time a frame covers. All timing is read from time.perf_counter(), the host’s monotonic clock.

Events from the script

What was done. A script emitted 40 markers half a second apart with a Marker, starting ten seconds after the pipeline started, and all 40 arrived in every run. A straight line was fitted through the sample positions they landed on against the instants they were emitted; the line’s slope is the rate the device really ran at, so a device running a little fast or slow does not count as scatter.

What the number is. The standard deviation of the markers’ sample positions about that line, in samples. 0 means every marker landed exactly where the line predicts; 0.5 means a typical marker is half a sample off the line. The Generator ran in frames of 10 samples, every amplifier in its default frame.

Source

Windows

macOS

Linux

Generator, 250 Hz

0.05

0.17

0.01

BCI Core-8, 250 Hz

0.29

0.28

0.29

Unicorn Hybrid Black, 250 Hz

0.29

0.27

0.31

g.Nautilus, 250 Hz

0.29

0.20

< 0.01

g.USBamp, 256 Hz

0.04

0.14

< 0.01

g.HIamp, 256 Hz

0.06

0.06

< 0.01

Triggers from another program

What was done. A separate process on the same machine sent 100 triggers over UDP, half a second apart, to a UDPReceiver, logging the instant each left; all 100 arrived in every run. The process runs on the same machine on purpose: both then read one clock, and an offset means something. A trigger from a second machine needs the shared time base, and that is the last table.

What the number is. The largest offset of any of the 100 triggers, in sample periods: how far the worst-placed trigger sat from the instant it was sent. Below 1.00, every trigger landed on its own sample. Above 1.00, at least one trigger landed one sample off; none in these runs landed two off. The tier records every trigger’s offset since 2026-10-08, so later runs will also state the share of triggers on their own sample, for every cell alike. The Generator ran in its default frame of 4 samples.

Source

Windows

macOS

Linux

Generator, 250 Hz

0.42

0.27

0.21

BCI Core-8, 250 Hz

1.01

0.66

0.32

Unicorn Hybrid Black, 250 Hz

1.76

1.65

1.85

g.Nautilus, 250 Hz

0.57

0.36

1.00

g.USBamp, 256 Hz

0.78

0.80

0.92

g.HIamp, 256 Hz

0.91

0.70

0.73

The Unicorn Hybrid Black’s row is the Bluetooth link: its driver hands over samples in bursts, and a trigger that arrives during a burst’s gap is placed against the burst’s stamp.

Frame delivery

What was done. The source ran into a sink for about 20 seconds, and the arrival instant of every frame at the sink was recorded. The first five frames carry the start-up and are set aside; the rest is the steady state.

What the numbers are. The gap between consecutive frame arrivals in the steady state: its 99th percentile and its maximum, in milliseconds, against the frame period in the row’s label. A gap equal to the period is a frame arriving exactly on time; a gap of twice the period is one frame late by a whole frame, or two frames delivered together. The Generator ran in frames of 10 samples (40 ms), the Bluetooth amplifiers in their default 4 (16 ms), a g.Nautilus one sample at a time (4 ms), a g.USBamp and a g.HIamp in the 8-sample frames their driver recommends at 256 Hz (31 ms).

Source, frame period

Windows: p99 / max

macOS: p99 / max

Linux: p99 / max

Generator, frames of 40 ms

40.9 / 41.6

40.6 / 41.0

40.3 / 40.3

BCI Core-8, frames of 16 ms

30.7 / 31.6

30.8 / 45.0

31.1 / 136.0

Unicorn Hybrid Black, frames of 16 ms

54.8 / 65.8

35.3 / 45.9

30.8 / 55.0

g.Nautilus, frames of 4 ms

5.9 / 16.6

4.2 / 6.2

4.3 / 20.0

g.USBamp, frames of 31 ms

32.7 / 33.6

31.5 / 31.5

31.5 / 32.0

g.HIamp, frames of 31 ms

34.2 / 35.4

31.5 / 31.7

31.5 / 31.7

A Bluetooth amplifier delivers in bursts, so its 99th percentile sits near two frame periods on every platform: two frames arrive together, then a gap. The maximum is a single worst gap in 20 seconds, and on a laptop it is the operating system’s, not the device’s.

Clock accuracy

What was done. The same 20-second run; the rate the device really delivered samples at was fitted from the instants the markers landed, against the rate it declares.

What the number is. The fitted rate’s offset from the declared one, in parts per million. +100 ppm means the device delivers 100 more samples per million than its nominal rate, 0.025 Hz at 250 Hz, which over an hour is 90 samples, or 0.36 s. The sign says fast or slow. The Generator is paced by the host’s timer, so its row is the host’s clock, not a device’s.

Source

Windows

macOS

Linux

Generator, 250 Hz

-1.6

-0.2

+0.4

BCI Core-8, 250 Hz

-264.1

+14.6

+147.5

Unicorn Hybrid Black, 250 Hz

+961.9

+745.3

+1084.3

g.Nautilus, 250 Hz

+15.5

+32.7

-2.5

g.USBamp, 256 Hz

-14.2

-6.6

-0.3

g.HIamp, 256 Hz

-3.3

-27.9

-0.8

The Unicorn Hybrid Black’s clock runs about 0.1 % fast on every platform; its driver numbers samples, so nothing is lost, and the pipeline’s timeline follows the fitted rate rather than the nominal one.

When a device is lost

What was done. Three procedures with a person at the bench. The device was switched off during a run; a USB amplifier’s cable was pulled during a run and plugged back in; a Bluetooth amplifier was carried out of range and back.

What the numbers are. For the switch-off, two figures: how long samples kept arriving after the switch, and how long after the switch the pipeline reported the loss as an error, the moment get_condition() turned to Error and failure named the device. The second figure includes the 2 s of silence the procedure waits for before it counts the stream as stopped. A g.Nautilus goes on delivering held values for a minute before its link is given up on, by design, because a headset walked out of range looks the same and comes back; a BCI Core waits the same minute for the same reason; a USB amplifier is given up on after about 20 s; the Unicorn’s driver reports the loss itself within seconds.

Amplifier switched off

Windows: kept arriving / reported

macOS: kept arriving / reported

Linux: kept arriving / reported

BCI Core-8

0 s / 61 s

0 s / 62 s

0 s / 59 s

Unicorn Hybrid Black

0 s / 6 s

0 s / 3 s

0 s / 2 s

g.Nautilus

60 s / 62 s

60 s / 62 s

59 s / 61 s

g.USBamp

0 s / 25 s

0 s / 24 s

0 s / 24 s

g.HIamp

0 s / 25 s

0 s / 23 s

26 s / 52 s

For the cable, three things: how long samples kept arriving after the unplug (the stream stops within a few seconds, since the driver reports a missing device); how long after plugging it back in the host listed the device again, including a 5 s settle the procedure waits; and whether the same process could open it again and stream.

Cable unplugged

Windows

macOS

Linux

g.Nautilus

2.6 s; relisting not timed; did not reopen

0.7 s; listed again after 5 s; did not reopen

0.6 s; relisting not timed; did not reopen

g.USBamp

10.0 s; relisting not timed; did not reopen

3.7 s; listed again after 5 s; reopened

1.4 s; listed again after 7 s; reopened

g.HIamp

4.2 s; relisting not timed; did not reopen

3.5 s; listed again after 6 s; reopened

1.4 s; listed again after 13 s; reopened

Out of range, the two Bluetooth amplifiers differ. The BCI Core’s driver reconnects by itself: on Windows, macOS and Linux the link came back after gaps of 21, 14, 13 s, with 5675, 3650, 3745 samples lost across them, and the run went on. The Unicorn’s driver reports a lost link as fatal, and the run ended and said so after 4.8 s on Windows, 1.1 s on macOS, 0.9 s on Linux.

Across two machines

What was done. Two machines on one wired subnet. The machine under test runs the master Generator and a UDPReceiver; a second machine, a Windows PC on an earlier 4.1.0 build in all three runs, runs the server and a second edge with its own UDPReceiver. The machine under test broadcasts each of 60 markers once, a single datagram both receivers hear, and the server places both receivers’ copies on the master’s timeline, so each pair belongs on one sample. Then the same again without the shared time base, as g.Pype 4.0 placed events.

What the numbers are. The difference, in samples, between where the second machine’s copy of a marker landed and where the machine under test’s own copy landed. Within one sample and on the same sample are the shares of the 60 pairs whose difference was at most 1 and exactly 0; offset is the mean difference, positive when the second machine’s copy landed later; jitter is its standard deviation. The last column repeats the shares without the time base.

Machine under test

Date

Within one sample

On the same sample

Offset

Jitter

Without the time base

Windows

2026-10-01

100 %

70 %

+0.30

0.46

20 % within one, 8 % on the same

macOS

2026-10-08

100 %

65 %

+0.32

0.50

20 % within one, 10 % on the same

Linux

2026-10-08

100 %

63 %

+0.37

0.48

44 of 60 not placed; the rest 5971 samples off

With the time base the three machines are within a tenth of a sample of one another: every pair landed within one sample, the second machine’s copy on the same sample or the one beside it, later in nearly every case. Without it, the server had no way to relate the two machines’ clocks and put the second machine’s markers on whatever sample it was producing at the time. On the two machines whose clocks happened to run close, that was up to 9 samples off; on the Linux machine, whose clock origin was unrelated to the Windows PC’s, 44 of the 60 markers fell outside the window in which a pair can be placed at all, and the 16 that were placed landed 24 seconds apart. That is what the time base is for: without it, two machines agree only by accident.

What is not measured

  • End-to-end latency from an amplifier’s input to an LSL or UDP consumer, a scope or a classifier. The components are known and added up on Real-Time Performance; the sum has not been measured as one figure.

  • Link latency per transport: Bluetooth Low Energy, classic Bluetooth, USB through the GDS service.

  • Load under scale: channel count, rate and node count beyond the two points on the performance page.

  • A trigger from a second machine against a real amplifier: the two-machine table runs on the Generator.

  • The share of triggers on their own sample: the records of these runs hold each run’s extremes, not every trigger; the tier records every trigger since 2026-10-08.