Twenty-case Tripwire, IC Wire and Candid comparison
SDK 2b4884840bb97e8851d8d8a4b4a3203848e83606; unchanged published IC Wire 0.7.21 and the SDK’s optimized Candid 0.10.38. These are three separate wasm64 images, each exposing the same twenty updates and using the same SDK and empty root. No SDK changes were made for this run.
540 complete measured physical updates passed full response validation. The table gives the mean of eight steady calls per case/codec, rounded to the nearest instruction. It includes entry, copies, decoding, business work, encoding, reply and page fees. Three startup updates are excluded; sixty initial-suite observations are retained separately. The eight varied inputs describe this exact cohort, not statistical confidence intervals.
| Operation | Tripwire | IC Wire | SDK Candid |
|---|---|---|---|
| Increment u64 | 165,705 | 164,790 | 493,981 |
| Transfer record → acknowledgement | 166,212 | 166,266 | 506,658 |
| Transform 32-byte digest | 167,014 | 171,824 | 511,242 |
| Short UTF-8 text echo | 410,779 | 328,025 | 498,233 |
| Read/checksum 8 KiB text | 355,244 | 437,998 | 608,583 |
| Read/checksum 32 KiB blob | 503,494 | 1,009,938 | 1,352,113 |
| Read/checksum entire 1 MiB blob | 10,817,566 | 17,152,754 | 17,490,261 |
| Reject 1 MiB request using header | 166,185 | 7,705,781 | 8,043,552 |
| Read only 256 bytes from 1 MiB | 170,639 | 7,709,293 | 8,046,868 |
| Read 4 KiB from three 256 KiB fields | 221,533 | 5,950,841 | 6,302,371 |
| Read profile/name/bio; skip 256 KiB avatar | 516,794 | 2,563,821 | 2,751,875 |
| Reject profile using header | 166,206 | 2,487,144 | 2,666,451 |
| Process 512 packed records | 343,360 | 836,799 | 1,021,502 |
| Reject 4,096-record request using count | 166,185 | 1,390,541 | 1,728,282 |
| Generate/return 32-byte blob | 330,954 | 328,149 | 498,383 |
| Generate/return 4 KiB text | 665,363 | 660,370 | 834,423 |
| Generate/return 64 KiB blob | 5,031,258 | 4,964,716 | 5,679,578 |
| Generate/return 1 MiB blob | 73,176,139 | 72,126,557 | 76,224,507 |
| Echo 32 KiB blob | 2,427,888 | 2,386,079 | 2,758,713 |
| Echo 256 KiB blob | 15,974,904 | 15,663,007 | 16,420,548 |
Tripwire costs less than IC Wire in 12/20 cases and less than SDK Candid in all twenty. Header rejection of a 1 MiB request saves 97.84% versus IC Wire; the full 1 MiB checksum saves 36.93%. Short UTF-8 echo is 25.23% more expensive than IC Wire, and reply/echo-heavy cases can be around 1–2% more expensive. These are operation-specific results, not a throughput ranking.
Generated-reply cases include deterministic per-call payload generation. Echo cases move the actual input into the response. All text/blob results are checked completely. Packed-record tests use the same explicitly packed fixed-width byte representation in every protocol; they do not compare arbitrary record-vector codecs.
Wasm sizes
Uncompressed bytes; the empty control contains the common SDK and no benchmark endpoints. Code-section payload sizes come from official WABT wasm-objdump 1.0.36, not a handwritten binary parser.
| Image | Deployable total | Raw compiler total | Deployable Code section | Raw Code section |
|---|---|---|---|---|
| Tripwire | 269,105 | 266,781 | 193,290 | 192,785 |
| IC Wire | 289,373 | 271,943 | 197,717 | 197,213 |
| SDK Candid | 734,671 | 732,346 | 527,578 | 527,069 |
| Empty control | 196,561 | 194,598 | 127,815 | 127,311 |
Tripwire’s raw image is 5,162 bytes smaller than IC Wire’s; their raw Code sections differ by 4,428 bytes. The larger 20,268-byte deployable difference also reflects embedded typed Wire interface metadata versus raw-method metadata. It is not all serializer code. These images reuse shared DTOs naturally and do not claim forty independent request/reply types.
Included heap-page instructions
These charges are already included in the first table. They are the mean accessed-plus-dirty charges for metered 64 KiB heap regions in this pinned server, not allocated memory sizes.
| Operation | Tripwire | IC Wire | SDK Candid |
|---|---|---|---|
| Increment u64 | 160,000 | 160,000 | 480,000 |
| Transfer record → acknowledgement | 160,000 | 160,000 | 480,000 |
| Transform 32-byte digest | 160,000 | 160,000 | 480,000 |
| Short UTF-8 text echo | 400,000 | 320,000 | 480,000 |
| Read/checksum 8 KiB text | 240,000 | 320,000 | 480,000 |
| Read/checksum 32 KiB blob | 160,000 | 640,000 | 960,000 |
| Read/checksum entire 1 MiB blob | 160,000 | 5,600,000 | 5,920,000 |
| Reject 1 MiB request using header | 160,000 | 5,600,000 | 5,920,000 |
| Read only 256 bytes from 1 MiB | 160,000 | 5,600,000 | 5,920,000 |
| Read 4 KiB from three 256 KiB fields | 160,000 | 4,320,000 | 4,640,000 |
| Read profile/name/bio; skip 256 KiB avatar | 400,000 | 1,920,000 | 2,080,000 |
| Reject profile using header | 160,000 | 1,920,000 | 2,080,000 |
| Process 512 packed records | 160,000 | 640,000 | 800,000 |
| Reject 4,096-record request using count | 160,000 | 1,120,000 | 1,440,000 |
| Generate/return 32-byte blob | 320,000 | 320,000 | 480,000 |
| Generate/return 4 KiB text | 320,000 | 320,000 | 480,000 |
| Generate/return 64 KiB blob | 800,000 | 800,000 | 1,440,000 |
| Generate/return 1 MiB blob | 5,600,000 | 5,600,000 | 8,640,000 |
| Echo 32 KiB blob | 640,000 | 640,000 | 960,000 |
| Echo 256 KiB blob | 1,760,000 | 1,760,000 | 2,240,000 |
Header rejection and selective reads keep Tripwire at one accessed and dirty heap region (160,000 page instructions), except when selected work itself needs more space. The SDK holds only the compiled request header initially; variable data is fetched into caller buffers. Full scans reuse 4 KiB scratch. This fixture has no populated storage, so it does not qualify application state, upgrades, RRT or concurrent throughput.
Method and evidence
Published IC Wire runs through normal typed SDK handlers and byte adapters. Candid uses the optimized SDK fork’s owned decode and cached encode helpers, finite decode limits, efficient bytes, and concise errors. Its raw request allocation is dropped before business code; it can still coexist with owned data during decoding. Tripwire uses generated framing on requests and replies, including fixed scalar replies. Valid selected work and logical results agree; unused Tripwire fields are deliberately not eagerly decoded.
Exactly one startup update per codec precedes tracing. The first recorded suite is not globally cold: shared DTO/header caches may already be warm. Steady calls are eight-call case-major cohorts with rotating codec order and matched numeric-boundary/producer seeds. The first call after a schema change remains included. No observer queries, body-counter substitution or baseline subtraction enter these totals.
Exact averages, min/max, initial observations, payload sizes and artifact hashes, reproduction and full traces, fixture contract, and independent audit.