跳到正文
cccskills
免费在 GitHub 公开

bandwidth-benchmark

Measure encoding/decoding throughput across Syrup implementations. This skill provides bandwidth benchmarks for comparing serialization performance.

中文简介正在准备中。当前显示原文说明。

查看安装方法

包含的文件(2)

  • SKILL.md3.0 KB
  • CONCOMITANT_SKILLS.md1.4 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Syrup Bandwidth Benchmark Skill

Overview

Measure encoding/decoding throughput across Syrup implementations. This skill provides bandwidth benchmarks for comparing serialization performance.

Benchmark Results

Test Structure: Skill Invocation

(syrec "skill:invoke" ['gay-mcp 'palette {"n" 4 "seed" 1069} 0])

Wire format: 57 bytes

Throughput by Runtime

RuntimeDirectionOperations/secBandwidth
ClojureEncode50,2102.86 MB/s
ClojureDecode12,2600.70 MB/s
ZigEncode58,882,41215,073 MB/s

Performance Ratio: Zig is 5,265x faster than Clojure for encoding.

Usage

Run Zig Benchmark

# Quick benchmark
zig build-exe -OReleaseFast --dep syrup -Mroot=benchmarks/bandwidth_simple.zig \
  -Msyrup=src/syrup.zig -femit-bin=/tmp/bench && /tmp/bench

# Full benchmark (via build.zig)
zig build bandwidth

Run Clojure Benchmark

bb syrup_bandwidth_benchmark.clj

Run Rust Benchmark

cd ocapn-syrup-rust
cargo run --example bandwidth_benchmark --release

Network Saturation Analysis

Zig's 15 GB/s encoding rate vs network speeds:

NetworkSpeedZig Headroom
1 Gbps Ethernet125 MB/s120x
10 Gbps Ethernet1,250 MB/s12x
100 Gbps Ethernet12,500 MB/s1.2x

Conclusion: Zig syrup can saturate a 100 Gbps network interface.

Performance Characteristics

Clojure (JVM)

  • Pros: Fast iteration, REPL-driven, expressive
  • Cons: GC pauses, heap allocations, ~3 MB/s throughput
  • Best for: Scripting, prototyping, non-latency-critical services

Rust (AOT)

  • Pros: Safety + performance, Serde integration, ~500-2000 MB/s
  • Cons: Compile times, borrow checker learning curve
  • Best for: Production services, high-throughput systems

Zig (AOT)

  • Pros: Zero-allocation, deterministic, ~15,000 MB/s
  • Cons: Smaller ecosystem, manual memory management
  • Best for: Embedded, real-time, maximum throughput

Practical Scenarios

Video Streaming @ 60fps

  • Frame size: 1MB
  • Required: 60 MB/s
  • Zig: ✅ 251x headroom (15,073 MB/s)
  • Clojure: ❌ 20x too slow (3 MB/s)

Microservice RPC

  • Network latency dominates
  • All runtimes perform similarly
  • Choose based on ecosystem/team expertise

Embedded Sensor → Cloud

  • Zig on MCU: Efficient, deterministic
  • Battery life: Zero-allocation = less power
  • Throughput: Can saturate any radio

Files

  • benchmarks/bandwidth_simple.zig - Quick Zig benchmark
  • benchmarks/bandwidth_benchmark.zig - Full Zig benchmark
  • syrup_bandwidth_benchmark.clj - Clojure benchmark
  • SYRUP_BANDWIDTH_COMPARISON.md - Complete comparison

Related Skills

  • cross-runtime-exchange - Verify CID compatibility

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Model ElevenLabs voice synthesis as an ACSet schema with Unison ability handlers for typed voice operations. Use when integrating ElevenLabs TTS into category-theoretic pipelines, building typed voice synthesis workflows, or managing multi-voice narration with GF(3) conservation.

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

Systematic process for analyzing and modernizing legacy applications to comply with the 12-Factor App methodology. Covers code analysis, configuration externalization, dependency management, and container/Kubernetes best practices.

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

13c0e3

免费

Gay MCP skill at invocation 26

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

19d57d

免费

Gay MCP skill at invocation 5

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

1ea91a

免费

Gay MCP skill at invocation 27

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

1eab21

免费

Gay MCP skill at invocation 3

中文简介正在准备中。当前显示原文说明。

plurigrid/asi702026年7月10日 更新

查看 plurigrid 的全部技能

报告此技能的问题