Benchmarks
These numbers come from the in-repo benches under bench/, measured on an Apple M4. Absolute times vary by hardware, Studio build, and load; use the ratios and relative ordering as the main takeaway.
Each operation is timed with BenchHelper: 50 warm-up calls, then 10 timed batches. Reported Avg is mean microseconds per call across those batches.
VoidSentryUltimate throughput
Source: benchresults/benchresult.txt
Harness: LuauBench + RobloxBench
Iterations: 10,000 per timed batch
Values are average microseconds per call (μs). Lower is faster.
Scalars and strings
| Type | Serialize | Deserialize | RoundTrip |
|---|---|---|---|
U8 | 0.05 | 0.02 | 0.06 |
U40 | 0.05 | 0.02 | 0.06 |
I40 | 0.06 | 0.02 | 0.06 |
U48 | 0.06 | 0.02 | 0.06 |
I48 | 0.05 | 0.02 | 0.06 |
UInt (1 byte) | 0.05 | 0.02 | 0.06 |
Int (1 byte) | 0.05 | 0.02 | 0.07 |
UInt (4 byte) | 0.06 | 0.02 | 0.07 |
Int (4 byte) | 0.06 | 0.02 | 0.07 |
F32 | 0.05 | 0.02 | 0.06 |
F64 | 0.06 | 0.02 | 0.07 |
Bool | 0.05 | 0.02 | 0.06 |
String (100 chars) | 0.09 | 0.06 | 0.15 |
String32 (100 chars) | 0.09 | 0.06 | 0.14 |
Vectors, buffers, and Roblox types
| Type | Serialize | Deserialize | RoundTrip |
|---|---|---|---|
Vector | 0.06 | 0.02 | 0.07 |
VectorF16 | 0.07 | 0.02 | 0.09 |
BufferFixed (32b) | 0.07 | 0.06 | 0.13 |
Buffer8 (33b payload) | 0.08 | 0.05 | 0.14 |
Color3 | 0.10 | 0.04 | 0.09 |
UDim2Quant | 0.07 | 0.03 | 0.10 |
CFrame | 0.10 | 0.06 | 0.14 |
QCFrame | 0.10 | 0.06 | 0.16 |
CFrameF16 | 0.15 | 0.07 | 0.22 |
CFrameQuantF16 | 0.11 | 0.09 | 0.20 |
CFrameQuant8F16 | 0.10 | 0.09 | 0.20 |
Instance | 0.05 | 0.02 | 0.07 |
SerInstance | 0.21 | 0.89 | 1.10 |
Enum | 0.05 | 0.02 | 0.06 |
BrickColor | 0.05 | 0.04 | 0.09 |
Ray | 0.08 | 0.06 | 0.13 |
TweenInfo | 0.12 | 0.07 | 0.20 |
RaycastResult | 0.13 | 0.07 | 0.21 |
DateTime | 0.07 | 0.14 | 0.23 |
Font | 0.14 | 0.22 | 0.38 |
NumberSequence | 0.15 | 0.14 | 0.31 |
ColorSequence | 0.21 | 0.18 | 0.41 |
Collections
| Type | Serialize | Deserialize | RoundTrip |
|---|---|---|---|
Array (10 × U8) | 0.14 | 0.14 | 0.28 |
Array32 (10 × U8) | 0.14 | 0.14 | 0.28 |
Array (100 × U8) | 0.91 | 1.02 | 1.93 |
Map (10 × U8→U8) | 0.22 | 0.32 | 0.55 |
Map32 (10 × U8→U8) | 0.22 | 0.32 | 0.55 |
Map (100 × U8→U8) | 1.67 | 2.13 | 3.78 |
InheritedStruct (10 × U8) | 0.15 | 0.20 | 0.36 |
Schema (10 × U8) | 0.15 | 0.20 | 0.36 |
Schema (100 × U8) | 1.47 | 2.73 | 4.28 |
Most primitive nodes stay at 0.05–0.06 μs serialize and 0.02 μs deserialize, including the 40-bit and 48-bit integers and both the 1-byte and 4-byte UInt / Int paths. Array32 and Map32 match the 2-byte count variants at these sizes. Cost grows with collection size and with types that pack or rebuild values, such as CFrameF16, Font, ColorSequence, and SerInstance.
Versus Sera
Source: benchresults/seravssentryresult.txt
Harness: bench/SeraVsVoidSentry/Comparator.luau
Iterations: 10,000 per timed batch
Sera only serializes through schemas. For primitives, vectors, and CFrames the comparator wraps Sera values in a single-field schema, while VoidSentryUltimate uses bare nodes. Schema rows compare Sera.Schema vs VoidSentryUltimate.Schema. Delta rows compare Sera.DeltaSerialize / DeltaDeserialize vs VoidSentryUltimate.Schema.DeltaSerialize / DeltaDeserialize. Push compares Sera.Push / DeltaPush vs VoidSentryUltimate.Schema.Push / Schema.DeltaPush.
Speedup is Sera Avg ÷ VoidSentry Avg. Values above 1.00x mean VoidSentry was faster.
Overall (suite averages)
| Category | Serialize | Deserialize | Total / RoundTrip |
|---|---|---|---|
| Primitives | 1.31x VS | 2.23x VS | 1.63x VS |
| Schemas | 1.24x VS | 1.06x VS | 1.15x VS |
| Deltas | 1.41x VS | 1.17x VS | 1.26x VS |
| Push | 1.38x VS | — | — |
Floats, vectors, and CFrames
| Operation | Sera (μs) | VoidSentry (μs) | Speedup |
|---|---|---|---|
F32 Serialize | 0.07 | 0.05 | 1.40x |
F32 Deserialize | 0.07 | 0.02 | 3.50x |
F32 RoundTrip | 0.13 | 0.07 | 1.86x |
Vector3 Serialize | 0.08 | 0.05 | 1.60x |
Vector3 Deserialize | 0.06 | 0.02 | 3.00x |
Vector3 RoundTrip | 0.13 | 0.06 | 2.17x |
CFrame Serialize | 0.12 | 0.10 | 1.20x |
CFrame Deserialize | 0.09 | 0.06 | 1.50x |
CFrame RoundTrip | 0.22 | 0.15 | 1.47x |
LossyCFrame vs QCFrame Serialize | 0.13 | 0.11 | 1.18x |
LossyCFrame vs QCFrame Deserialize | 0.12 | 0.05 | 2.40x |
Schemas (U8 fields)
| Operation | Sera (μs) | VoidSentry (μs) | Speedup |
|---|---|---|---|
| 1 field Serialize | 0.07 | 0.05 | 1.40x |
| 1 field Deserialize | 0.05 | 0.04 | 1.25x |
| 10 fields Serialize | 0.21 | 0.15 | 1.40x |
| 10 fields Deserialize | 0.31 | 0.19 | 1.63x |
| 100 fields Serialize | 1.71 | 1.41 | 1.21x |
| 100 fields Deserialize | 2.69 | 2.64 | 1.02x |
| 100 fields RoundTrip | 4.58 | 4.11 | 1.11x |
Deltas (Schema.DeltaSerialize vs Sera delta)
| Operation | Sera (μs) | VoidSentry (μs) | Speedup |
|---|---|---|---|
| 10 fields, all present Serialize | 0.25 | 0.21 | 1.19x |
| 10 fields, all present Deserialize | 0.35 | 0.33 | 1.06x |
| 100 fields, all present Serialize | 2.24 | 1.54 | 1.45x |
| 100 fields, only 1 present Serialize | 0.09 | 0.08 | 1.13x |
| 255 fields, only 1 present Serialize | 0.08 | 0.06 | 1.33x |
Push
| Operation | Sera (μs) | VoidSentry (μs) | Speedup |
|---|---|---|---|
| Schema Push (100 fields) | 1.64 | 1.35 | 1.21x |
| DeltaPush (100 fields, only 1 present) | 0.05 | 0.03 | 1.67x |
Summary
- Primitives are VoidSentry’s clearest win (~1.3× serialize, ~2.2× deserialize, ~1.6× round-trip on the suite averages). Bare
F32deserialize is 3.5× andVector3deserialize is 3.0×. - Schemas stay close on large payloads: VoidSentry leads serialize (
1.24×), deserialize (1.06×), and total (~1.15×). The 10-field deserialize gap is wider (1.63×). - Deltas favor VoidSentry (~1.41× serialize, ~1.17× deserialize, ~1.26× total). Sparse “only 1 present” serializes stay ahead; the 100-field sparse deserialize in this run does not.
- Push suite average favors VoidSentry (0.771 μs vs 1.061 μs, about 1.38×). 100-field
Schema.Pushis 1.21×, and a 100-fieldDeltaPushwith one present field is 1.67×. - Prefer schema tables for schema-to-schema comparisons; prefer primitive tables when comparing each library’s natural single-value API.
LuauBench also includes a VoidSentryUltimate.Schema section for the pure-Luau package.
Reproducing
-- VoidSentry-only throughput (Luau subset + Roblox types)
const LuauBench = require(path.to.bench.LuauBench)
const RobloxBench = require(path.to.bench.RobloxBench)
LuauBench(true, 10_000)
RobloxBench(true, 10_000)
-- VoidSentry vs Sera
const Comparator = require(path.to.bench.SeraVsVoidSentry.Comparator)
Comparator(true, 10_000)
Raw logs used for this page live in benchresults/.