Repository Public License
1#!/usr/bin/env bash2# ORIX Scan3# File: Scripts/benchmark.sh4# Description: Runs the OCR accuracy benchmark and the engine timings on this Mac; results in docs/development/benchmarks/*.json.5# These are host measurements of the same engine code the app ships, not iPhone or iPad measurements.6#7# Author: Simon-Pierre Boucher8# Contact: contact@spboucher.ai9set -euo pipefail10cd "$(dirname "$0")/.."11OUT="$PWD/docs/development/benchmarks"12mkdir -p "$OUT"13cd Packages/ORIXKit14ORIX_BENCH=1 ORIX_BENCH_OUT="$OUT" swift test -c release --no-parallel --filter Benchmarks 2>&1 | grep -E "✔|✘|error|Test run"15ls -l "$OUT"16