mirror of
https://github.com/luxfi/pulsar.git
synced 2026-09-24 00:25:52 +00:00
Initial commit. Holds the technical specification (LaTeX), the design docs, the build/test/bench scripts, the package layout, and the empty ref/go/pkg/pulsarm skeleton. The spec at spec/pulsar-m.tex (11,300 words of LaTeX) is the canonical description of the protocol. docs/nist-mptc-category.md states the Class N1 + N4 claim. CONTRIBUTING.md and SECURITY.md pin the IP and disclosure posture. Subsequent commits land the reference implementation in stages. Signed-off-by: Lux Industries <[email protected]>
32 lines
879 B
Bash
Executable File
32 lines
879 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Pulsar-M reproducible benchmarks.
|
|
#
|
|
# Runs the experimental-evaluation harness and writes results to
|
|
# bench/results/. Hardware fingerprint is captured so reviewers can compare.
|
|
|
|
set -euo pipefail
|
|
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
cd "$REPO_ROOT"
|
|
export GOWORK=off
|
|
|
|
OUT_DIR="bench/results"
|
|
mkdir -p "$OUT_DIR"
|
|
|
|
echo "==> hardware fingerprint"
|
|
{
|
|
uname -a
|
|
if command -v sysctl >/dev/null 2>&1; then
|
|
sysctl -a 2>/dev/null | grep -E 'machdep\.cpu\.brand_string|hw\.ncpu|hw\.memsize' || true
|
|
fi
|
|
if [[ -f /proc/cpuinfo ]]; then
|
|
grep -E 'model name|cpu MHz' /proc/cpuinfo | head -2
|
|
fi
|
|
go version
|
|
} > "$OUT_DIR/fingerprint.txt"
|
|
|
|
echo "==> Go benchmarks"
|
|
go test -bench=. -benchmem -count=3 -run=^$ -benchtime=2s ./ref/go/... | tee "$OUT_DIR/go-bench.txt"
|
|
|
|
echo "==> done — results in $OUT_DIR/"
|