{
  "schema": 3,
  "crate": "ruststream-nats",
  "crate_version": "0.7.0",
  "core_version": "0.7.0-rc.9",
  "measured_at": "2026-09-23",
  "environment": {
    "cpu": "AMD Ryzen 9 7900X 12-Core Processor",
    "architecture": "x86_64",
    "cpu_frequency": "427-5912 MHz",
    "cores": "12 physical, 24 logical",
    "memory": "62.4 GiB",
    "memory_speed": "unknown",
    "os": "Linux 7.2.6-x64v3-xanmod1-1",
    "broker": "nats:2-alpine in Docker on localhost",
    "round_trip": "61.0 us (median of 30000 request/reply round trips on one connection)",
    "rustc": "1.98.1",
    "profile": "bench, inheriting release (opt-level = 3, lto = false, codegen-units = 16)",
    "features": "ruststream-nats default (none), ruststream macros,json",
    "rustflags": "none (the recipe clears RUSTFLAGS, so the numbers are not tied to this CPU)",
    "valgrind": "3.25.1"
  },
  "scenarios": [
    {
      "name": "Core NATS, 512 B JSON",
      "unit": "msg/s",
      "messages": 10726274,
      "pairs": 3,
      "raw": {
        "best": 1572989,
        "median": 1529161,
        "worst": 1235864
      },
      "adapter": {
        "best": 1517318,
        "median": 1388559,
        "worst": 903061
      },
      "framework": {
        "best": 1538720,
        "median": 1452357,
        "worst": 1115541
      },
      "adapter_overhead_percent": 3.5,
      "adapter_verdict": "indistinguishable",
      "overhead_percent": 2.2,
      "verdict": "indistinguishable",
      "broker_bound": false
    },
    {
      "name": "JetStream pull consumer, 512 B JSON, ack each",
      "unit": "msg/s",
      "messages": 1502854,
      "pairs": 3,
      "raw": {
        "best": 238615,
        "median": 235035,
        "worst": 227820
      },
      "adapter": {
        "best": 234350,
        "median": 233144,
        "worst": 232960
      },
      "framework": {
        "best": 238750,
        "median": 235916,
        "worst": 233188
      },
      "adapter_overhead_percent": 1.8,
      "adapter_verdict": "indistinguishable",
      "overhead_percent": -0.1,
      "verdict": "indistinguishable",
      "broker_bound": false
    }
  ],
  "code": [
    {
      "name": "JetStream pull consumer, JSON decode into a small struct, ack each",
      "messages": 1000,
      "framework": {
        "instructions": 9897.4,
        "allocations": 7.1
      },
      "cold": {
        "instructions": 349697,
        "allocations": 274
      },
      "gated": true
    },
    {
      "name": "JetStream pull consumer, reply published by NatsPublisher on Core NATS",
      "messages": 1000,
      "framework": {
        "instructions": 14048.0,
        "allocations": 11.1
      },
      "cold": {
        "instructions": 356051,
        "allocations": 279
      },
      "gated": true
    },
    {
      "name": "JetStream fetches of 64, ack each",
      "messages": 1000,
      "framework": {
        "instructions": 9469.3,
        "allocations": 6.4
      },
      "cold": {
        "instructions": 375223,
        "allocations": 301
      },
      "gated": true
    }
  ]
}
