Skip to content

Comparative Measurement of Three WordPress A/B Audio Players

Audio Sync Benchmark

Comparative Measurement of Three WordPress A/B Audio Players

HexCoda A/B Audio Player Lite  |  Audio Comparison Lite  |  Studio Player

Test signal: 3 min Pink Noise (−24 dBFS) with single-sample impulse spikes (−1 dBFS) — 44.1 kHz / 16-bit / Dual-Mono WAV

Measurement method: AudioWorklet capture at 44.1 kHz; samples processed as Float32 and exported as 16-bit PCM WAV after capture. Network measurement via CDP Network.dataReceived

1. Introduction

This study compares three WordPress plugins for A/B audio comparison: HexCoda A/B Audio Player Lite, Audio Comparison Lite, and Studio Player. All three plugins are available free of charge on wordpress.org and are aimed at audio professionals who wish to present before/after comparisons on their portfolio websites.

The central question is: how do the three players synchronize the switching between two audio variants, and which architecture delivers which level of synchronization quality? Two metrics were defined for this purpose: the drift Δt between the audio variants over the playback duration, and the data consumption (transfer overhead) as a function of listening duration.

All three players were operated with the same test signal under identical conditions. The measurement was performed using real audio recordings via AudioWorklet as well as CDP-based network measurement (Network.dataReceived).

Disclaimer: This study is not an independent scientific study but rather a brief comparative test designed to help assess the author’s own code architecture. The author is also the developer of Studio Player.

2. Test Signal

The test signal is a 3-minute dual-mono WAV file (44.1 kHz / 16-bit) with the following properties:

  • Pink Noise at −24 dBFS as a continuous background signal
  • Single-sample impulse spikes at −1 dBFS in a 250 ms raster (4 spikes per second, 720 spikes total over 180 seconds)
  • Dual-Mono (both channels identical) for unambiguous spike positions

The 23 dB difference between the nominal pink-noise level (−24 dBFS) and the impulse level (−1 dBFS) was chosen deliberately to provide signal separation.

Waveform of the test signal — Pink Noise with single-sample impulse spikes in a 250 ms raster, 3-second excerpt
Figure 1: Waveform of the test signal — Pink Noise (−24 dBFS) with single-sample impulse spikes (−1 dBFS) in a 250 ms raster. 3-second excerpt.

3. Subject of Investigation — The Three Players

The three plugins employ fundamentally different architectural approaches for A/B synchronization:

3.1 HexCoda A/B Audio Player Lite (v1.0.3)

Two parallel HTML5 <audio> elements with separate files. A/B switching via volume (0/1). In the tested version, a JavaScript-based drift correction (correctDrift) operates every 500 ms with a 45 ms threshold. Progressive download — loads audio only after the play click and streams during playback.

3.2 Audio Comparison Lite (v3.9)

In the tested version, two separate Howl instances (Howler.js / Web Audio API) are used. Both WAV files are loaded completely into RAM via XHR + decodeAudioData — before the play click. A/B switching via stop + seek + play (sequential, only one variant active at a time). No inter-source drift is expected by design, since only one source plays at a time.

3.3 Studio Player (v0.9.69)

A single multichannel FLAC stream (4 channels = 2 stereo variants) via a PHP endpoint with token authentication. Adaptive streaming with variable chunk sizes. A/B switching via GainNode in the Web Audio API (gain 0/1, configurable ramp, set to 1 ms for this test). No inter-source drift is expected by design, since only one playback timeline exists.

4. Methodology

All measurements were performed under uniform conditions:

  • Browser: Chromium 143.0.7499.4 (headless) via Playwright 1.63.0
  • Network: unthrottled direct connection to the server (studioplayer.de)
  • Test procedure: 180 s playback with 20 switches in 4 cascades (5 switches each at 2-second intervals at t = 10, 55, 100, 145 s)
  • Audio recording: AudioWorklet capture at 44.1 kHz (AudioContext.sampleRate verified at 44100 Hz); samples are processed as Float32 and exported as 16-bit PCM stereo WAV after capture
  • Network measurement: CDP Network.dataReceived (cumulative encoded response bytes observed by Chromium)
  • Drift measurement: spike-based — detection of spike positions in the audio recording and comparison with the 250 ms raster of the reference
  • Cache state: fresh browser context per test run, cache cleared, no service worker reuse

The offset calibration was performed using the first 10 spikes (AudioWorklet priming offset). All drift values are calibrated. Each player was measured in a single test run (n = 1).

4.1 Network Conditions and Server Location

The test server (studioplayer.de) is hosted in Nuremberg, Germany. The test client was located in Montreal, Canada, with approximately 90 ms TCP connection establishment time to the server over an unthrottled direct connection. The observed ordering applies to the tested network condition; its stability under substantially different network conditions was not evaluated. Absolute ready-to-play times depend on client–server latency and may differ for clients in other regions; the relative ordering of the three architectures, however, is expected to remain stable under comparable network conditions.

5. Results

5.1 Ready-to-play and Data Consumption

Table 1 shows the ready-to-play time (page load to first audio output) and the cumulative data consumption at defined time points.

Player Ready (s) Bytes at Ready Bytes at 10 s Bytes at 60 s Bytes at 180 s
HexCoda 1.4 1.02 MB 6.69 MB 22.83 MB 60.96 MB
Audio Comparison 9.9 60.95 MB 60.95 MB 60.95 MB 60.95 MB
Studio Player 1.67 3.59 MB 7.53 MB 21.56 MB 43.35 MB

Table 1: Ready-to-play time and cumulative data consumption, measured from a single client in Montreal, Canada (~90 ms TCP connect time to the Nuremberg server).

Audio Comparison Lite (ACL) requires the longest ready-to-play time at approximately 9.9 s, as Howler.js loads both WAV files completely into RAM via decodeAudioData before playback starts. At the pre-play mark, 60.95 MB have already been transferred — both complete WAV files. No further download occurs during the 180 s playback. Because the entire payload must be transferred and decoded before the first audio output, ready-to-play time is strongly dependent on available throughput and network conditions; higher-latency links may further increase startup time.

HexCoda achieved the shortest ready-to-play time (1.4 s) with only 0.96 MB of loaded data — corresponding to approximately 5.6 seconds of 44.1 kHz / 16-bit stereo audio at the measured byte volume. The player loads progressively and has transferred both WAV files completely after 180 s (60.96 MB).

Studio Player requires 1.67 s to the first audio output and has transferred only 3.59 MB. The initial buffer contained approximately 7–10 s of playable audio in this test. Over the 180 s playback, the player streams progressively and transfers a total of 43.35 MB (the 4-channel FLAC file with 2 stereo variants).

5.2 Synchronization (Drift Δt)

Table 2 shows the inter-source drift Δt between the audio variants over the 180 s playback. The drift was determined spike-based from the PCM audio recording.

Player Drift min Drift max Drift mean Architecture
HexCoda 37 ms 116 ms 67 ms 2 parallel streams, correctDrift()
Audio Comparison Lite N/A N/A N/A Sequential (stop+seek+play) — single active source
Studio Player N/A N/A N/A 1 stream, gain switch — single timeline

Table 2: Inter-source drift Δt over 180 s playback (spike-based, reference-calibrated). N/A = not applicable: only one playback timeline is active at a time.

HexCoda exhibits a measurable inter-source drift that increases from 37 ms to 116 ms over the playback duration. For drift measurement, the two media-element outputs were routed to separate recording channels before the A/B output gain/volume selection, allowing both playback timelines to be observed independently. For each detected impulse spike, the time offset between the corresponding spikes in the left and right channels was measured. Since both <audio> elements run in parallel with volume 0/1 switching, the time offset between corresponding spikes directly reflects the inter-source drift between the two playback timelines.

In the tested HexCoda 1.0.3 implementation, the correctDrift() function only operates when both streams are actively playing (dual mode, i.e., during switch cascades). During phases where only one variant is audible (the other is muted via volume = 0 but continues playing), no drift correction occurs. The accumulated drift is partially inherited by the newly activated variant at each switch — hence the stepwise increase.

Audio Comparison Lite and Studio Player have no inter-source drift applicable because only one playback timeline is active at a time. ACL plays only one Howl instance at a time (stop + seek + play), Studio Player uses a single stream with gain switching.

5.3 Data Consumption and Transfer Overhead

Table 3 shows the transfer overhead for four use cases: pre-play (no play click), 10 s (bouncer), 60 s (curious listener), and 180 s (critical listener). The baseline assumes that the transferred data required for playback grows linearly with playback duration. The needed bytes are a linear reference baseline calculated as: Needed(t) = (t / 180) × Loaded(180 s). This is not a measured value but a theoretical reference. At 180 s, the measured transfer equals the reference baseline by construction, resulting in 0.0% relative overhead. The 180 s value is the normalization point of the metric.

Use Case Player Loaded Needed (baseline) Overhead Overhead %
Pre-play HexCoda 1.00 MB 0.00 MB 1.00 MB 100.0%
Pre-play Audio Comparison Lite 60.95 MB 0.00 MB 60.95 MB 100.0%
Pre-play Studio Player 6.53 MB 0.00 MB 6.53 MB 100.0%
10 s listened HexCoda 6.69 MB 3.39 MB 3.30 MB 49.4%
10 s listened Audio Comparison Lite 60.95 MB 3.39 MB 57.56 MB 94.4%
10 s listened Studio Player 7.53 MB 2.41 MB 5.12 MB 68.0%
60 s listened HexCoda 22.83 MB 20.32 MB 2.51 MB 11.0%
60 s listened Audio Comparison Lite 60.95 MB 20.32 MB 40.63 MB 66.7%
60 s listened Studio Player 21.56 MB 14.45 MB 7.11 MB 33.0%
180 s listened HexCoda 60.96 MB 60.96 MB 0.00 MB 0.0%
180 s listened Audio Comparison Lite 60.95 MB 60.95 MB 0.00 MB 0.0%
180 s listened Studio Player 43.35 MB 43.35 MB 0.00 MB 0.0%

Table 3: Transfer overhead relative to linear playback baseline for four use cases. The 180 s row is the normalization point (0.0% by construction).

Transfer overhead per player architecture — percentages and loaded MB shown per cell
Figure 2: Transfer overhead per player architecture. Percentages and loaded MB shown per cell.

At pre-play (no play click), the overhead is 100% for all players — all loaded data is unused. ACL already loads both WAV files in the background during page load (60.95 MB) via Howler’s XHR, without the user clicking play. HexCoda loads only metadata (1.00 MB, preload=“metadata”). Studio Player loads a small initial buffer (6.53 MB) but not the full FLAC file.

In the bouncer scenario (10 s listened), ACL has the highest transfer overhead at 94.4%, since both WAV files were already fully loaded before the play click. HexCoda (49.4%) and Studio Player (68.0%) load progressively and show substantially less overhead.

In the critical listener scenario (180 s listened), the overhead is 0.0% for all three players by construction — this is the normalization point of the metric, not a measured result.

6. Discussion

The results reveal three fundamentally different architectural trade-offs:

HexCoda achieved the shortest ready-to-play time (1.4 s) and combines fast startup with progressive download and parallel streaming. The drawback is the measurable inter-source drift (37–116 ms), which arises from the architecture: the correctDrift() function only corrects when both streams are active. In solo phases, drift accumulates and is partially inherited at each switch.

Audio Comparison Lite offers no inter-source drift by design (single active source), but at the cost of the longest ready-to-play time (9.9 s from the Montreal client) and the highest data consumption at short listening durations (94.4% overhead at 10 s, 100% overhead at pre-play). The cause is Howler’s decodeAudioData, which loads both WAV files completely into RAM before the play click. Because the full payload must arrive before playback begins, the architecture is poorly suited to short listening sessions, particularly on higher-latency links where the same full-download cost translates into substantially longer startup.

Studio Player (1.67 s ready-to-play) eliminates continuous inter-source clock drift by design and combines this with low data consumption at ready (3.59 MB) and the lowest overall data consumption (43 MB vs. 60 MB). The streaming architecture with multichannel FLAC, token authentication, and adaptive chunk sizes enables progressive loading, where data is transferred according to playback and buffering requirements.

7. Conclusion

Under the tested conditions, the results indicate that the audio delivery and A/B switching architecture has a major influence on synchronization and data consumption. While sequential approaches (ACL) and single-stream approaches (Studio Player) eliminate continuous inter-source clock drift by design, the parallel approach (HexCoda) produces a measurable drift that increases over the playback duration.

Regarding data consumption, progressive streaming architectures (HexCoda, Studio Player) substantially outperform the full-download approach (ACL), particularly at short listening durations. Studio Player additionally combines the advantages of FLAC compression and streaming, achieving the lowest overall data consumption (43 MB vs. 60 MB for the WAV-based players).

The transfer overhead analysis shows: at full listening duration (180 s), the overhead is 0.0% for all players by construction — this is the normalization point of the metric. The decisive difference emerges at short listening durations: while progressive streaming architectures load data progressively according to playback and buffering requirements, ACL always transfers both complete WAV files — regardless of how long the user actually listens.

8. Appendix

WordPress.org Plugin Directory

HexCoda A/B Audio Player Lite
WordPress.org Plugin Directory:
https://wordpress.org/plugins/hexcoda-ab-audio-player-lite/

Audio Comparison Lite
WordPress.org Plugin Directory:
https://wordpress.org/plugins/audio-comparison-lite/

The Studio Player
WordPress.org Plugin Directory:
https://wordpress.org/plugins/the-studio-player/

 

Compare the three tested players yourself – side by side
All players on one page with the noise + spike test signal
https://studioplayer.de/a-b-player-comparison/