[!WARNING] These benchmark tests can only be run within the
Microsoft Excel environment.
This folder contains a self-contained benchmark harness for Wasabi’s core primitives. It measures raw CPU throughput, independent of network latency, using the same native Windows APIs that Wasabi calls internally.
| Operation | Description |
|---|---|
| SHA‑1 | Cryptographic hash used during the WebSocket handshake (CryptoAPI) |
| Base64Encode | Encoder used for handshake keys and proxy auth (CryptBinaryToStringW) |
| StringToUtf8 | Conversion from VBA String to UTF‑8 bytes (WideCharToMultiByte) |
| Utf8ToString | Conversion from UTF‑8 bytes to VBA String (MultiByteToWideChar) |
| BuildWSFrame | Full WebSocket frame construction, including CryptGenRandom mask |
WasabiBenchmark.bas must be added to Wasabi.bas.WasabiBenchmark.bas into your VBA project.WasabiBenchmark_RunAll from the Immediate Window or Macro dialog.The suite uses QueryPerformanceCounter for sub‑millisecond accuracy and
automatically adapts iteration counts to the payload size.

The chart plots throughput against payload size on a logarithmic scale, highlighting the performance difference between operations.