Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Performance at a glance

Every figure on this page is read from a benchmark artifact in this repository by scripts/generate-performance-page.py; a measurement with no artifact reads “not measured”. Each table compares only runs of one workload and configuration. Raw runs and provenance are under Provenance.

Codec cost

ergon against sbe-tool on equal work. The ratio is ergon / sbe-tool (the range over invocations when the run repeated); the verdict is the gate’s (scripts/check-bench-gate.sh). INCONCLUSIVE passes the gate but is not parity: no winner is established. Method and ceilings: Benchmarks.

workloadlanemean costratio to sbe-tooluncertaintyverdict
decode_scalarlto510.019 ns per iteration0.9047 to 0.9197 (ceiling 1.00)ratio CI 0.8997 to 0.9253 over 5 invocation(s)PASS: resolved
decode_arraylto510.703 ns per iteration0.5824 to 0.5981 (ceiling 1.00)ratio CI 0.5768 to 0.6042 over 5 invocation(s)PASS: resolved
decode_compositelto247.912 ns per iteration0.6099 to 0.6131 (ceiling 1.00)ratio CI 0.6086 to 0.6135 over 5 invocation(s)PASS: resolved
decode_full_messagelto10530.398 ns per iteration0.7540 to 0.7678 (ceiling 1.00)ratio CI 0.7423 to 0.7779 over 5 invocation(s)PASS: resolved
decode_full_message_orderedlto10582.469 ns per iteration0.7606 to 0.7776 (ceiling 1.00)ratio CI 0.7522 to 0.7829 over 5 invocation(s)PASS: resolved
decode_entry_pointlto730.412 ns per iteration0.7060 to 0.7108 (ceiling 1.00)ratio CI 0.7040 to 0.7142 over 5 invocation(s)PASS: resolved
encode_scalar_header_and_bodylto1473.600 ns per iteration0.7010 to 0.7120 (ceiling 1.00)ratio CI 0.6979 to 0.7142 over 5 invocation(s)PASS: resolved
encode_scalar_body_onlylto294.672 ns per iteration0.7193 to 0.7731 (ceiling 1.00)ratio CI 0.7109 to 0.7867 over 5 invocation(s)PASS: resolved
encode_throughput_10klto6517.329 ns per iteration0.8758 to 0.8856 (ceiling 1.00)ratio CI 0.8686 to 0.8926 over 5 invocation(s)PASS: resolved
throughput_batch_10klto8677.831 ns per iteration0.9103 to 0.9136 (ceiling 1.00)ratio CI 0.9066 to 0.9171 over 5 invocation(s)PASS: resolved
wire_parity_encode_fulllto3790.343 ns per iteration0.6236 to 0.6333 (ceiling 1.00)ratio CI 0.6193 to 0.6392 over 5 invocation(s)PASS: resolved
extended_optional_enum_nullifylto801.339 ns per iteration0.8996 to 0.9170 (ceiling 1.00)ratio CI 0.8884 to 0.9298 over 5 invocation(s)PASS: resolved
extended_group_with_datalto4645.010 ns per iteration0.8333 to 0.8681 (ceiling 1.00)ratio CI 0.8242 to 0.8831 over 5 invocation(s)PASS: resolved
decode_scalarno-lto512.644 ns per iteration0.8771 to 0.9117 (ceiling 1.00)ratio CI 0.8731 to 0.9282 over 5 invocation(s)PASS: resolved
decode_arrayno-lto504.473 ns per iteration0.5827 to 0.5897 (ceiling 1.00)ratio CI 0.5809 to 0.5915 over 5 invocation(s)PASS: resolved
decode_compositeno-lto248.453 ns per iteration0.6106 to 0.6145 (ceiling 1.00)ratio CI 0.6097 to 0.6150 over 5 invocation(s)PASS: resolved
decode_full_messageno-lto10533.660 ns per iteration0.7582 to 0.7744 (ceiling 1.00)ratio CI 0.7572 to 0.7751 over 5 invocation(s)PASS: resolved
decode_full_message_orderedno-lto10493.759 ns per iteration0.7563 to 0.7758 (ceiling 1.00)ratio CI 0.7556 to 0.7806 over 5 invocation(s)PASS: resolved
decode_entry_pointno-lto790.586 ns per iteration0.7567 to 0.7740 (ceiling 1.00)ratio CI 0.7557 to 0.7798 over 5 invocation(s)PASS: resolved
encode_scalar_header_and_bodyno-lto1439.292 ns per iteration0.6740 to 0.6952 (ceiling 1.00)ratio CI 0.6683 to 0.6959 over 5 invocation(s)PASS: resolved
encode_scalar_body_onlyno-lto290.939 ns per iteration0.7229 to 0.7521 (ceiling 1.00)ratio CI 0.7135 to 0.7616 over 5 invocation(s)PASS: resolved
encode_throughput_10kno-lto6485.409 ns per iteration0.8748 to 0.8814 (ceiling 1.00)ratio CI 0.8725 to 0.8889 over 5 invocation(s)PASS: resolved
throughput_batch_10kno-lto8507.867 ns per iteration0.9018 to 0.9210 (ceiling 1.00)ratio CI 0.8988 to 0.9253 over 5 invocation(s)PASS: resolved
wire_parity_encode_fullno-lto4502.449 ns per iteration0.7453 to 0.7509 (ceiling 1.00)ratio CI 0.7437 to 0.7526 over 5 invocation(s)PASS: resolved
extended_optional_enum_nullifyno-lto776.695 ns per iteration0.8860 to 0.8883 (ceiling 1.00)ratio CI 0.8813 to 0.8964 over 5 invocation(s)PASS: resolved
extended_group_with_datano-lto4785.088 ns per iteration0.8060 to 0.8591 (ceiling 1.00)ratio CI 0.7902 to 0.8752 over 5 invocation(s)PASS: resolved
cluster_encode_session_message_headerlto2.790 ns per op0.9836 to 1.0514 (ceiling 1.00)ratio CI 0.9720 to 1.0631 over 5 invocation(s)INCONCLUSIVE: no winner: inside the measured A/A band
cluster_encode_session_keep_alivelto1.895 ns per op0.9433 to 1.0586 (ceiling 1.00)ratio CI 0.9347 to 1.0687 over 5 invocation(s)INCONCLUSIVE: no winner: inside the measured A/A band
cluster_decode_session_message_headerlto1.276 ns per op0.9520 to 1.0465 (ceiling 1.01)ratio CI 0.9429 to 1.0904 over 5 invocation(s)INCONCLUSIVE: no winner: inside the measured A/A band
cluster_decode_session_eventlto2.625 ns per op0.8068 to 0.8491 (ceiling 1.01)ratio CI 0.7995 to 0.8725 over 5 invocation(s)PASS: resolved
cluster_encode_claim_shaped_header_plus_applto4.425 ns per op0.9555 to 1.0521 (ceiling 1.00)ratio CI 0.9462 to 1.0636 over 5 invocation(s)INCONCLUSIVE: no winner: inside the measured A/A band
cluster_encode_session_message_headerno-lto2.650 ns per op0.9506 to 1.0037 (ceiling 1.00)ratio CI 0.9413 to 1.0129 over 5 invocation(s)INCONCLUSIVE: no winner: inside the measured A/A band
cluster_encode_session_keep_aliveno-lto1.924 ns per op0.9906 to 1.0732 (ceiling 1.00)ratio CI 0.9801 to 1.0835 over 5 invocation(s)INCONCLUSIVE: no winner: inside the measured A/A band
cluster_decode_session_message_headerno-lto1.213 ns per op0.9325 to 1.0031 (ceiling 1.01)ratio CI 0.9257 to 1.0079 over 5 invocation(s)PASS: resolved
cluster_decode_session_eventno-lto2.761 ns per op0.8941 to 0.9555 (ceiling 1.05)ratio CI 0.8882 to 0.9732 over 5 invocation(s)PASS: resolved
cluster_encode_claim_shaped_header_plus_appno-lto4.447 ns per op0.9512 to 1.0393 (ceiling 1.00)ratio CI 0.9422 to 1.0474 over 5 invocation(s)INCONCLUSIVE: no winner: inside the measured A/A band

Codec cost distribution

Per arm, runs of one profile pooled over every invocation. n is the number of Criterion samples; min, p50, p99, p99.99 and max are percentiles of the per-sample cost (ns per iteration for sbe codecs, ns per operation for cluster codecs). A sample is the mean of a batch of iterations, so these are not per-message tails: the max is the slowest sample’s mean, and with n below 10,000 p99.99 is that max. Each max is unexplained: the host was shared with other jobs while these ran, so a spike may be preemption or cache pollution; the next experiment is a rerun on an isolated CPU.

workloadlanearmnminp50p99p99.99max
decode_scalarltoergo-sbe1,000488.618507.866534.909538.927538.927
decode_scalarltosbe-tool1,000540.439552.411608.333613.032613.032
decode_arrayltoergo-sbe1,000489.799505.217544.869784.579784.579
decode_arrayltosbe-tool1,000851.780857.966897.0321269.0031269.003
decode_compositeltoergo-sbe_engine1,000240.874247.704250.066254.325254.325
decode_compositeltosbe-tool_engine1,000402.324404.675411.810547.861547.861
decode_full_messageltoergo-sbe_consuming1,00010390.10410481.07510959.91218856.09218856.092
decode_full_messageltosbe-tool1,00013434.97813760.52714164.59133050.36833050.368
decode_full_message_orderedltoergo-sbe_ordered1,00010432.66210557.13910856.54016418.24916418.249
decode_full_message_orderedltosbe-tool1,00013434.97813760.52714164.59133050.36833050.368
decode_entry_pointltoergo-sbe_wrap1,000648.069730.248810.972833.716833.716
decode_entry_pointltosbe-tool_wrap1,000966.4161030.9431058.0981089.7741089.774
encode_scalar_header_and_bodyltoergo-sbe_header_and_body1,0001443.6031468.6821527.4741577.8141577.814
encode_scalar_header_and_bodyltosbe-tool_header_and_body1,0001969.8362087.1912148.8742792.1532792.153
encode_scalar_body_onlyltoergo-sbe_body_only1,000265.606281.897368.440562.761562.761
encode_scalar_body_onlyltosbe-tool_body_only1,000381.545395.612413.117558.007558.007
encode_throughput_10kltoergo-sbe1,0006012.4686523.7186722.7569759.8319759.831
encode_throughput_10kltosbe-tool1,0006823.1017386.7107541.17611146.56811146.568
throughput_batch_10kltoergo-sbe1,0008539.4978655.5288947.0498987.2718987.271
throughput_batch_10kltosbe-tool1,0009279.6709467.92510129.89010287.56410287.564
wire_parity_encode_fullltoergo-sbe1,0003513.6593789.0273904.5826556.5436556.543
wire_parity_encode_fullltosbe-tool1,0005713.1426023.7956179.7208771.5868771.586
extended_optional_enum_nullifyltoergo-sbe1,000721.001773.4941011.6641032.0281032.028
extended_optional_enum_nullifyltosbe-tool1,000847.898877.620921.430934.060934.060
extended_group_with_dataltoergo-sbe1,0004553.2674579.6035420.4186194.1846194.184
extended_group_with_dataltosbe-tool1,0005256.3915342.3336198.8186833.9676833.967
decode_scalarno-ltoergo-sbe1,000487.316506.533554.6461145.3091145.309
decode_scalarno-ltosbe-tool1,000544.768576.351616.021627.491627.491
decode_arrayno-ltoergo-sbe1,000487.075502.552525.231533.184533.184
decode_arrayno-ltosbe-tool1,000850.498858.886867.929875.373875.373
decode_compositeno-ltoergo-sbe_engine1,000242.921248.136251.496254.230254.230
decode_compositeno-ltosbe-tool_engine1,000403.015405.259415.447420.502420.502
decode_full_messageno-ltoergo-sbe_consuming1,00010359.48110495.27310721.11310762.95810762.958
decode_full_messageno-ltosbe-tool1,00013456.73113780.68113918.26914239.92914239.929
decode_full_message_orderedno-ltoergo-sbe_ordered1,00010326.73710455.37210785.66515474.57615474.576
decode_full_message_orderedno-ltosbe-tool1,00013456.73113780.68113918.26914239.92914239.929
decode_entry_pointno-ltoergo-sbe_wrap1,000708.229781.702844.400874.207874.207
decode_entry_pointno-ltosbe-tool_wrap1,000984.7861030.9861078.0171082.7811082.781
encode_scalar_header_and_bodyno-ltoergo-sbe_header_and_body1,0001268.7381444.9681458.1651500.5541500.554
encode_scalar_header_and_bodyno-ltosbe-tool_header_and_body1,0001994.3062086.7042131.0812157.7712157.771
encode_scalar_body_onlyno-ltoergo-sbe_body_only1,000257.467270.477321.097327.169327.169
encode_scalar_body_onlyno-ltosbe-tool_body_only1,000380.250395.387414.688616.779616.779
encode_throughput_10kno-ltoergo-sbe1,0006120.0346460.4926744.09310582.57810582.578
encode_throughput_10kno-ltosbe-tool1,0006915.3167392.8237465.8327504.7947504.794
throughput_batch_10kno-ltoergo-sbe1,0008365.8518474.5208753.80112040.68212040.682
throughput_batch_10kno-ltosbe-tool1,0009111.7309339.6849789.4989832.5589832.558
wire_parity_encode_fullno-ltoergo-sbe1,0004209.5354508.3034560.3684620.4954620.495
wire_parity_encode_fullno-ltosbe-tool1,0005626.4016018.4846179.9186206.9286206.928
extended_optional_enum_nullifyno-ltoergo-sbe1,000707.878772.894880.2331206.3051206.305
extended_optional_enum_nullifyno-ltosbe-tool1,000841.266876.160913.192928.637928.637
extended_group_with_datano-ltoergo-sbe1,0004550.4304584.2186086.8807541.8277541.827
extended_group_with_datano-ltosbe-tool1,0005520.2135590.4986448.6097124.4347124.434
cluster_encode_session_message_headerltoergo-sbe2,0002.5612.7563.2513.5093.509
cluster_encode_session_message_headerltosbe-tool2,0002.5562.7543.2373.4313.431
cluster_encode_session_keep_aliveltoergo-sbe2,0001.7881.8582.2772.4602.460
cluster_encode_session_keep_aliveltosbe-tool2,0001.7841.8992.2352.5792.579
cluster_decode_session_message_headerltoergo-sbe2,0001.1831.2342.4023.2873.287
cluster_decode_session_message_headerltosbe-tool2,0001.1821.2042.3572.8892.889
cluster_decode_session_eventltoergo-sbe2,0002.5092.5444.2864.5164.516
cluster_decode_session_eventltosbe-tool2,0002.9543.1403.9694.1934.193
cluster_encode_claim_shaped_header_plus_appltoergo-sbe2,0004.0414.3725.1235.8695.869
cluster_encode_claim_shaped_header_plus_appltosbe-tool2,0004.0754.3975.1395.5185.518
cluster_encode_session_message_headerno-ltoergo-sbe2,0002.5332.6172.9603.1933.193
cluster_encode_session_message_headerno-ltosbe-tool2,0002.5342.6623.1674.4064.406
cluster_encode_session_keep_aliveno-ltoergo-sbe2,0001.7921.8962.2742.5722.572
cluster_encode_session_keep_aliveno-ltosbe-tool2,0001.7911.8472.1422.3782.378
cluster_decode_session_message_headerno-ltoergo-sbe2,0001.1851.2011.3311.4391.439
cluster_decode_session_message_headerno-ltosbe-tool2,0001.1821.2211.4051.6741.674
cluster_decode_session_eventno-ltoergo-sbe2,0002.6582.6973.1884.3774.377
cluster_decode_session_eventno-ltosbe-tool2,0002.9532.9573.8235.8475.847
cluster_encode_claim_shaped_header_plus_appno-ltoergo-sbe2,0004.0264.4105.1925.5125.512
cluster_encode_claim_shaped_header_plus_appno-ltosbe-tool2,0004.0684.4315.2215.9985.998

Individual-message latency

One codec operation per sample, as the latency_distribution bench (just bench-diagnostics) times it. No run of it is kept here.

workloadloadnminp50p99p99.99maxmax causethroughputdrops
codec, one operation per samplenot measurednot measurednot measurednot measurednot measurednot measurednot measurednot measurednot measurednot measured

Failover

scenariofailure detectionunavailable intervaltime to valid book
cluster leader failovernot measurednot measurednot measured

The failover tests (cluster-test-harness/tests/failover.rs and failover_own_driver.rs) check that the client reconnects to the new leader within a deadline, not how long it takes.

Host scheduling gaps

A busy-spin loop on an isolated CPU, with helper load on the pod’s shared CPU: every loop iteration in ns, reps of one arm pooled. n is loop iterations; p50, p99 and p99.99 are histogram bucket upper bounds; min is the lowest bucket’s bound; max is exact. Gap-log drops are gaps the probe could not log, not lost messages. Setup and fixes: Shared CPUs.

armrepsnminp50p99p99.99maxgap-log dropsmax cause
plugin-on37,463,469,071≤ 82432325,5200host stall below the guest kernel (hypervisor or hardware) (rep 3: 0 involuntary switches (rep total); interrupts overlapping: nothing counted)

Under ftrace (trace): the tracer adds its own cost, so these are not comparable with the table above.

armrepsnminp50p99p99.99maxgap-log dropsmax cause
trace12,488,258,738≤ 824323240,6080preemption: a kworker LRU drain after systemd’s daily generators (node event) (rep 1: 1 involuntary switch (rep total); interrupts overlapping: IPI0 Rescheduling interrupts +1, IPI1 Function call interrupts +1)

Provenance

  • Codec cost, sbe lto: estimates and gate output (run_id b20261106T083837Z-61963-af10a56ac3fb, commit af10a56ac3fb36e99c332e6e53aa3d38a5131393, rustc 1.99.0 (b940084d7 2026-09-28), target aarch64-apple-darwin, host Apple M4).
  • Codec cost, sbe no-lto: estimates and gate output (run_id b20261106T083837Z-61963-af10a56ac3fb, commit af10a56ac3fb36e99c332e6e53aa3d38a5131393, rustc 1.99.0 (b940084d7 2026-09-28), target aarch64-apple-darwin, host Apple M4).
  • Codec cost, cluster lto: estimates and gate output (run_id cluster-20261106T151023Z-c8d9b86, commit c8d9b8646a52a01ac1fee48265d09f6ea7d4a18f, rustc 1.99.0 (b940084d7 2026-09-28), target x86_64-unknown-linux-gnu, host Intel(R) Core(TM) i5-8500T CPU @ 2.10GHz; load at start: 23:10:23 up 3:02, 7 users, load average: 0.43, 1.37, 2.33; load at end: 23:26:40 up 3:19, 8 users, load average: 2.01, 2.74, 2.73).
  • Codec cost, cluster no-lto: estimates and gate output (run_id cluster-20261106T151023Z-c8d9b86, commit c8d9b8646a52a01ac1fee48265d09f6ea7d4a18f, rustc 1.99.0 (b940084d7 2026-09-28), target x86_64-unknown-linux-gnu, host Intel(R) Core(TM) i5-8500T CPU @ 2.10GHz; load at start: 23:26:40 up 3:19, 8 users, load average: 2.01, 2.74, 2.73; load at end: 23:42:22 up 3:34, 8 users, load average: 2.74, 2.61, 2.62).
  • Host scheduling gaps: run azure-20261024234841, Standard_D8ps_v6 (8 vCPUs, aarch64), Debian GNU/Linux 13 (trixie), kernel 6.12.113+deb13-cloud-arm64.
  • Max causes: max-causes.tsv.