Vision Benchmarks

Latency, accuracy and cost for every adk-vision backend, side by side, measured on the project's own fixtures and published with the machine and versions they ran on. No source gave a CPU or Apple Silicon latency for the backends adk-vision ships, so these tables are the first; a default backend changes only with a result here.

Note: adk-vision is Experimental (spec 3.7, §7.17). The tables below are one run on one laptop; the nightly job publishes the same table for Apple Silicon and Linux CPU runners as an artifact on every run.

What Is Measured

ColumnHow
Cold loadFetching the weights from a warm cache, verifying every file's SHA-256 against the built-in manifest, and building the sessions
p50 / p95Wall time per image through VisionRuntime at three input sizes — the fixture scaled to a long edge of 512, 1024 and 2048 px — after warm-up runs; each run changes one pixel, so no embedding cache answers
ThroughputImages per second, one at a time, at 1024 px
Peak RSSThe process's resident set after the timed runs; the bench process loads backends one after another, so later rows include earlier ones' allocations
ScoresEach vision score's mean over the eval set's cases, computed by adk-eval exactly as cargo adk eval computes it (Vision Evals)
Cost / 1k imagesThe run's metered spend per 1,000 images: zero for local backends, catalog prices for cloud ones

The workloads are the committed eval sets over generated images: generated-detect for detectors, shapes-segment (box prompts) for promptable segmenters, shapes-concepts for sam-3.1, shapes-locate and s5-grounding for describers, documents-read for document readers, and the four captioned fixtures for embedders (top-1 retrieval image to text and text to image).

Cloud rows replay recorded provider responses through the real clients: their scores and cost are what the live call produced, and they carry no latency. A live row is one call, timed end to end.

Running It

# Every local backend plus the recorded cloud rows; weights land in HF_HUB_CACHE
HF_HUB_CACHE=/path/to/models cargo run -p adk-bench --profile ci \
    --features vision-onnx,vision-ocr,vision-cloud --example vision_bench -- \
    run --out vision-bench.md --json vision-bench.json

# A slow backend with fewer runs, added to the same report
HF_HUB_CACHE=/path/to/models cargo run -p adk-bench --profile ci \
    --features vision-ocr-vl-metal --example vision_bench -- \
    run --backends paddleocr-vl-1.6-metal --runs 3 --warmup 1 \
    --append vision-bench.json --out vision-bench.md --json vision-bench.json

# One live call per provider, added to the report
ANTHROPIC_API_KEY=… NVIDIA_API_KEY=… META_API_KEY=… cargo run -p adk-bench --profile ci \
    --features vision-cloud --example vision_bench -- \
    run --backends none --no-recorded --live claude,nvidia,sam \
    --append vision-bench.json --out vision-bench.md --json vision-bench.json

ADK_VISION_ONNX_EP=coreml (with vision-coreml) or cuda selects the ONNX execution provider. The nightly vision-bench job in ci-nightly.yml runs the first command on macos-latest (Apple Silicon) and ubuntu-24.04, uploads vision-bench-<runner>.md and .json, and then gates each local backend's eval scores against its committed baseline through cargo adk eval --check-regression.

Results

Measured on 2026-11-19 with the commands above, built with the ci profile. The local rows ran first, from a warm weights cache; the live calls, PaddleOCR-VL-1.6 on Metal (2 timed runs per size) and on the CPU (one timed run at 1024 px) ran later and were appended, each noting the load average it started under. Recorded rows replay the responses recorded on 2026-11-19.

Note: These rows ran on ort 2.0.0-rc.13 and onnxruntime 1.28. On 2026-11-21 the rf-detr-n, rf-detr-n-q4f16, pp-ocrv6-tiny and pp-ocrv6-small rows ran again on ort 2.0.0-rc.15 and onnxruntime 1.31, alternating with the earlier build on the same machine: the same scores (rf-detr-n-q4f16 region IoU 0.892 against 0.890), latency within run-to-run noise, and a lower peak RSS.

Machine
Run2026-11-19T17:27:18Z
OSmacOS 26.2 (aarch64)
CPUApple M4, 10 logical cores
Memory24 GiB
Load average at start9.61 13.24 16.05
adk-rust3.0.0
image0.25.10
oar-ocr0.10.3
oar-ocr-vl0.10.3
onnxruntime1.28.0
ort2.0.0-rc.13
profileoptimised
tokenizers0.21.4
Settings2 warm-up and 10 timed runs per size; sizes are the long edge
BackendTaskRuntimeCold load512 px p50 / p951024 px p50 / p952048 px p50 / p95ThroughputPeak RSS
rf-detr-ndetectort, CPU0.33 s52.1 ms / 56.4 ms53.1 ms / 54.9 ms58.5 ms / 63.5 ms18.7 img/s334 MiB
rf-detr-n-q4f16detectort, CPU0.16 s131.9 ms / 133.1 ms136.8 ms / 150.3 ms141.8 ms / 153.0 ms7.1 img/s402 MiB
efficientsam-tisegmentort, CPU0.17 s604.0 ms / 798.6 ms672.1 ms / 726.9 ms625.1 ms / 814.1 ms1.5 img/s1488 MiB
sam2.1-hiera-tiny-q4segmentort, CPU0.29 s1.01 s / 1.16 s966.0 ms / 1.09 s1.11 s / 1.30 s1.0 img/s2571 MiB
siglip2-base-patch16-256-quantizedembedort, CPU1.31 s124.0 ms / 271.8 ms180.6 ms / 217.1 ms136.0 ms / 192.5 ms5.4 img/s1501 MiB
pp-ocrv6-tinyreadoar-ocr on ort, CPU0.04 s80.4 ms / 131.4 ms98.0 ms / 120.7 ms112.6 ms / 177.5 ms9.8 img/s1596 MiB
pp-ocrv6-smallreadoar-ocr on ort, CPU0.15 s374.2 ms / 461.2 ms442.2 ms / 519.2 ms470.9 ms / 731.9 ms2.2 img/s1690 MiB
paddleocr-vl-1.6-metalreadoar-ocr-vl on Candle, Metal21.46 s8.39 s / 10.83 s8.22 s / 8.81 s10.17 s / 10.56 s0.12 img/s2293 MiB
paddleocr-vl-1.6-cpureadoar-ocr-vl on Candle, CPU4.74 s—25.53 s / 25.53 s—0.04 img/s3491 MiB
BackendModeEval setCasesScoresCost / 1k images
rf-detr-nlocalgenerated-detect1count_accuracy 1.000, detection_ap 1.000, detection_map 1.000, detection_precision 1.000, detection_recall 1.000, region_iou 0.992$0.00
rf-detr-n-q4f16localgenerated-detect1count_accuracy 1.000, detection_ap 1.000, detection_map 0.850, detection_precision 1.000, detection_recall 1.000, region_iou 0.890$0.00
efficientsam-tilocalshapes-segment1box_hit_rate 0.667, count_accuracy 1.000, mask_iou 0.983, region_iou 0.980$0.00
sam2.1-hiera-tiny-q4localshapes-segment1box_hit_rate 1.000, count_accuracy 1.000, mask_iou 0.988, region_iou 0.992$0.00
siglip2-base-patch16-256-quantizedlocalcaptioned-fixtures4retrieval_image_to_text_top1 0.750, retrieval_text_to_image_top1 1.000$0.00
pp-ocrv6-tinylocaldocuments-read2field_exact_match 1.000, field_normalized_match 1.000, ocr_char_accuracy 1.000, ocr_word_accuracy 1.000$0.00
pp-ocrv6-smalllocaldocuments-read2field_exact_match 1.000, field_normalized_match 1.000, ocr_char_accuracy 1.000, ocr_word_accuracy 1.000$0.00
claude-sonnet-5-5recordedshapes-locate1box_hit_rate 0.600, detection_recall 1.000, region_iou 0.918$4.67
claude-sonnet-5-5recordeds5-grounding1box_hit_rate 1.000, detection_recall 1.000, grounding_hit_rate 1.000, region_iou 0.989$16.06
claude-haiku-5-5recordedshapes-locate1box_hit_rate 0.800, detection_recall 1.000, region_iou 0.934$0.10
claude-haiku-5-5recordeds5-grounding1box_hit_rate 1.000, detection_recall 1.000, grounding_hit_rate 1.000, region_iou 0.990$0.20
nemotron-super-vlrecordedshapes-locate1box_hit_rate 0.000, detection_recall 1.000, region_iou 0.799unpriced
nemotron-super-vlrecordeds5-grounding1box_hit_rate 0.000, detection_recall 1.000, grounding_hit_rate 1.000, region_iou 0.824unpriced
gemma-4recordedshapes-locate1box_hit_rate 0.000, detection_recall 1.000, region_iou 0.874unpriced
gemma-4recordeds5-grounding1box_hit_rate 0.000, detection_recall 0.917, grounding_hit_rate 0.917, region_iou 0.713unpriced
muse-spark-1-3recordedshapes-locate1box_hit_rate 0.200, detection_recall 1.000, region_iou 0.808$5.56
muse-spark-1-3recordeds5-grounding1box_hit_rate 0.583, detection_recall 1.000, grounding_hit_rate 1.000, region_iou 0.896$10.53
sam-3.1recordedshapes-concepts3box_hit_rate 1.000, detection_recall 1.000, region_iou 0.987$2.50
claude-sonnet-5-5live (one live call, 2.76 s wall; load average 14.82 13.08 15.57 at its start)shapes-locate1box_hit_rate 0.600, detection_recall 1.000, region_iou 0.927$4.67
nemotron-super-vllive (one live call, 3.07 s wall; load average 14.82 13.08 15.57 at its start)shapes-locate1box_hit_rate 0.000, detection_recall 0.800, region_iou 0.755unpriced
sam-3.1live (one live call, 4.84 s wall; load average 14.82 13.08 15.57 at its start)shapes-concepts1box_hit_rate 1.000, detection_recall 1.000, region_iou 0.990$2.50
paddleocr-vl-1.6-metallocal (load average 19.00 16.20 13.85 at its start; 2 timed runs per size)documents-read2field_exact_match 1.000, field_normalized_match 1.000, ocr_char_accuracy 0.910, ocr_word_accuracy 0.876$0.00
paddleocr-vl-1.6-cpulocal (load average 1.83 9.49 12.21 at its start; 1 timed run per size)documents-read2field_exact_match 1.000, field_normalized_match 1.000, ocr_char_accuracy 0.910, ocr_word_accuracy 0.876$0.00
BackendModelRevisionLicence
rf-detr-nrf-detr-neae21cee0687Apache-2.0
rf-detr-n-q4f16rf-detr-n-q4f16eae21cee0687Apache-2.0
efficientsam-tiefficientsam-ti1cf49585c395Apache-2.0
sam2.1-hiera-tiny-q4sam2.1-hiera-tiny-q4814a066640deApache-2.0
siglip2-base-patch16-256-quantizedsiglip2-base-patch16-256-quantizedd1114256522aApache-2.0
pp-ocrv6-tinypp-ocrv6-tiny-det2ba1506c0380Apache-2.0
pp-ocrv6-tinypp-ocrv6-tiny-rec2612ab37152aApache-2.0
pp-ocrv6-smallpp-ocrv6-small-det28fe5895c24fApache-2.0
pp-ocrv6-smallpp-ocrv6-small-recb8f84f0b80c5Apache-2.0
claude-sonnet-5-5claude-sonnet-5-5—provider terms
claude-haiku-5-5claude-haiku-5-5—provider terms
nemotron-super-vlnvidia/nemotron-3.5-super-vl-120b-a12b—provider terms
gemma-4google/gemma-4-31b-it—provider terms
muse-spark-1-3muse-spark-1.3—provider terms
sam-3.1sam-3.1—provider terms
paddleocr-vl-1.6-metalpaddleocr-vl-1.6132c45f52c0aApache-2.0
paddleocr-vl-1.6-metalpp-doclayoutv3e4f489dc5365Apache-2.0
paddleocr-vl-1.6-cpupaddleocr-vl-1.6132c45f52c0aApache-2.0
paddleocr-vl-1.6-cpupp-doclayoutv3e4f489dc5365Apache-2.0

Reading the Results

BackendWhat the run shows
RF-DETR NanoAbout 52–59 ms per image at every input size on the M4's CPU: the runtime resizes each image to the model's 384×384 input first. Both drawn objects found, region IoU 0.992
RF-DETR Nano q4f16A 19 MB export against 108 MB, and on the CPU about 2.5 times slower than fp32 (132–142 ms); it finds both objects, with looser boxes (region IoU 0.890, COCO mAP 0.85 against 1.00)
EfficientSAM-Ti, SAM 2.1 Tiny q4Each image costs an encoder pass, about 0.6 s and 1.0 s, nearly flat across input sizes. Both segment the drawn shapes at mask IoU 0.98 or better; SAM 2.1's boxes are within 2 px for all three shapes, EfficientSAM's for two
SigLIP 2 base124–181 ms per image; every caption ranks its own fixture first, and three of four fixtures rank their own caption first
PP-OCRv6 tiny, smallTiny reads a page in 80–113 ms, small in 374–471 ms; both read the report page and the invoice exactly and extract all seven invoice fields
PaddleOCR-VL-1.6On Metal 8.2–10.2 s per page after a 21 s load; on the CPU 25.5 s per page at 1024 px. Every word it reads matches; its character accuracy of 0.91 counts the chart's tick and axis labels, which it leaves to chart recognition, and its layout order, which puts the invoice total after the footer. All seven invoice fields extracted
Claude Sonnet 5.5, Haiku 5.5Every S5 click lands inside its target, at region IoU 0.99; on the drawn shapes, three (Sonnet) and four (Haiku) of five boxes are within 2 px
Nemotron Super VL, Gemma 4No box lands within 2 px of the drawn edges (region IoU 0.71–0.87); Nemotron places every S5 click inside its target, Gemma 4 all but one. NVIDIA publishes no price for its hosted endpoints, so the rows say unpriced, not free
Muse Spark 1.3Every S5 click inside its target; boxes looser than Claude's (region IoU 0.81–0.90)
sam-3.1Each named shape at region IoU 0.987, $2.50 per 1,000 images as the catalog prices it; one live call took 4.8 s end to end

The cloud costs are the run's metered spend: a describer's cost follows the tokens the image becomes, so the 3024×1964 S5 screenshot costs Claude Sonnet 5.5 $16.06 per 1,000 against $4.67 for the 960×540 shapes image. Local backends record their units at zero cost.

The run shared the machine with other work: the local rows were measured with the project's other builds held off, and the load average each run started under is in the machine table or the row. Load moves the numbers: an earlier run on the same machine, started at a load average of 48, measured RF-DETR Nano at 76 ms p50 against 52 ms here.

Vision Benchmarks - ADK-Rust Documentation | ADK-Rust