Skip to main content

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​

TypeSerializeDeserializeRoundTrip
U80.050.020.06
U400.050.020.06
I400.060.020.06
U480.060.020.06
I480.050.020.06
UInt (1 byte)0.050.020.06
Int (1 byte)0.050.020.07
UInt (4 byte)0.060.020.07
Int (4 byte)0.060.020.07
F320.050.020.06
F640.060.020.07
Bool0.050.020.06
String (100 chars)0.090.060.15
String32 (100 chars)0.090.060.14

Vectors, buffers, and Roblox types​

TypeSerializeDeserializeRoundTrip
Vector0.060.020.07
VectorF160.070.020.09
BufferFixed (32b)0.070.060.13
Buffer8 (33b payload)0.080.050.14
Color30.100.040.09
UDim2Quant0.070.030.10
CFrame0.100.060.14
QCFrame0.100.060.16
CFrameF160.150.070.22
CFrameQuantF160.110.090.20
CFrameQuant8F160.100.090.20
Instance0.050.020.07
SerInstance0.210.891.10
Enum0.050.020.06
BrickColor0.050.040.09
Ray0.080.060.13
TweenInfo0.120.070.20
RaycastResult0.130.070.21
DateTime0.070.140.23
Font0.140.220.38
NumberSequence0.150.140.31
ColorSequence0.210.180.41

Collections​

TypeSerializeDeserializeRoundTrip
Array (10 × U8)0.140.140.28
Array32 (10 × U8)0.140.140.28
Array (100 × U8)0.911.021.93
Map (10 × U8→U8)0.220.320.55
Map32 (10 × U8→U8)0.220.320.55
Map (100 × U8→U8)1.672.133.78
InheritedStruct (10 × U8)0.150.200.36
Schema (10 × U8)0.150.200.36
Schema (100 × U8)1.472.734.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)​

CategorySerializeDeserializeTotal / RoundTrip
Primitives1.31x VS2.23x VS1.63x VS
Schemas1.24x VS1.06x VS1.15x VS
Deltas1.41x VS1.17x VS1.26x VS
Push1.38x VS——

Floats, vectors, and CFrames​

OperationSera (μs)VoidSentry (μs)Speedup
F32 Serialize0.070.051.40x
F32 Deserialize0.070.023.50x
F32 RoundTrip0.130.071.86x
Vector3 Serialize0.080.051.60x
Vector3 Deserialize0.060.023.00x
Vector3 RoundTrip0.130.062.17x
CFrame Serialize0.120.101.20x
CFrame Deserialize0.090.061.50x
CFrame RoundTrip0.220.151.47x
LossyCFrame vs QCFrame Serialize0.130.111.18x
LossyCFrame vs QCFrame Deserialize0.120.052.40x

Schemas (U8 fields)​

OperationSera (μs)VoidSentry (μs)Speedup
1 field Serialize0.070.051.40x
1 field Deserialize0.050.041.25x
10 fields Serialize0.210.151.40x
10 fields Deserialize0.310.191.63x
100 fields Serialize1.711.411.21x
100 fields Deserialize2.692.641.02x
100 fields RoundTrip4.584.111.11x

Deltas (Schema.DeltaSerialize vs Sera delta)​

OperationSera (μs)VoidSentry (μs)Speedup
10 fields, all present Serialize0.250.211.19x
10 fields, all present Deserialize0.350.331.06x
100 fields, all present Serialize2.241.541.45x
100 fields, only 1 present Serialize0.090.081.13x
255 fields, only 1 present Serialize0.080.061.33x

Push​

OperationSera (μs)VoidSentry (μs)Speedup
Schema Push (100 fields)1.641.351.21x
DeltaPush (100 fields, only 1 present)0.050.031.67x

Summary​

  • Primitives are VoidSentry’s clearest win (~1.3× serialize, ~2.2× deserialize, ~1.6× round-trip on the suite averages). Bare F32 deserialize is 3.5× and Vector3 deserialize 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.Push is 1.21×, and a 100-field DeltaPush with 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/.