A fast, safe, and efficient CBOR serialization library for Swift on any platform.
swiftpackageindex.com/thecoolwinter/CBOR/1.1.1/documentation/cbor
atproto
swift
cbor
1#!/usr/bin/env bash
2# Run the Swift benchmark compare command and pipe its markdown output into the Python parser.
3# Usage: run this from the repository root.
4
5set -euo pipefail
6
7# If you want to pass additional args to the swift command, set SWIFT_ARGS environment variable.
8SWIFT_ARGS=${SWIFT_ARGS:-"baseline compare swiftcbor --format markdown --no-progress"}
9PY_SCRIPT="$(dirname "$0")/bench_compare.py"
10
11swift -version
12# Run the swift command and pipe
13swift package benchmark $SWIFT_ARGS | python3 "$PY_SCRIPT"