NXP i.MX 95 Benchmarks

Detailed benchmarks comparing CPU and NPU execution of ailia SDK (NXP NPU build) and NXP ONNX Runtime on the NXP FRDM i.MX 95. For the summary and setup instructions, see the NXP i.MX 95 Setup Guide.

Measurement Conditions

We compared ailia SDK (NXP NPU build) with ONNX Runtime 1.24.3 (ORT) bundled with the NXP BSP on the FRDM i.MX 95. All models were measured on 2026-11-22 with ailia runtime c8e3d217e. All measurements use 6 CPU threads with profiling disabled, and NPU results include CPU execution of unsupported layers. Each backend uses the same model.

ORT was measured with its NPU CMA allocation fixed to 512 MiB. The tested board has 960 MiB of CMA, and ORT's default 2 GiB allocation fails and falls back to the CPU. ailia does not use this setting.

ViT-B/16 (Image Classification, 224×224)

Uses the INT4 model published in ailia-models (ViT-B_16-224-int4.onnx), which converts constant-weight MatMuls to MatMulNBits INT4 and runs the remaining operations in FP32. The input is images/vit/input.jpg bundled with the demo, batch 1. One dummy inference at model Open is excluded, and the table reports the median of the next 10 runs. Pre/post-processing and drawing are excluded.

ItemORT CPUORT NPUailia CPUailia NPU
Inference time (median)670.2 ms385.9 ms780.7 ms328.8 ms
FPS1.492.591.283.04

ailia NPU is approximately 1.17x faster than ORT NPU. All four backends classified the image as Labrador retriever (ImageNet class 208) in all ten runs. A separate profiling run confirmed that all 72 MatMulNBits nodes run on Neutron with ORT NPU.

The 2026-11-18 measurement also compared the maximum absolute output difference when the same input is inferred repeatedly (output variation). Only ORT NPU varied (0.2002); ORT CPU, ailia CPU and ailia NPU were 0 (the same result every time).

SAM 2.1 Tiny (Segmentation, 512×512)

Uses the COCO-calibrated coco-val2017-v1 model from ailia-sdk-nxp-demo. ailia's CPU execution uses NEON-optimized integer MatMul. All backends ran the same dummy input once when opening each model, then warmed up with one full pass over the 5 Bedroom frames using the same two points. The table reports the median of the next 3 runs and excludes warm-up time.

OperationCalls / videoORT CPUORT NPU*ailia CPUailia NPU
Image Encoder (ms / call)52,282.12,199.61,807.7886.4
Mask Decoder (ms / call)5172.3178.7126.5126.3
Memory Attention (ms / call)41,502.51,497.7882.2516.5
Memory Encoder (ms / call)5309.7300.9236.8236.7
Still image (ms / image)—2,454.42,378.31,934.21,012.7
Video, average per frame (ms)—4,0643,9622,9621,742

Per-model rows are the median of each run's average time per call. The still image value is the sum of the Image Encoder and Mask Decoder and excludes pre/post-processing. The video per-frame average is the 5-frame total time divided by 5; it includes image loading and pre/post-processing but excludes model loading, drawing and saving. All four backends use the same models. The NPU backends run the Image Encoder and Memory Attention with mixed CPU/NPU execution; all other networks run on the CPU.

* ORT NPU is a timing-only result because its tracking masks were incorrect in this measurement as well. These timing measurements do not verify accuracy.

In an earlier measurement, the mean mask IoU against the FP32 reference on Bedroom was 96.07% for host ORT CPU and 95.71% for ailia NPU on the device. This is not accuracy against ground-truth masks.

Grounding DINO Swin-T (Open-Vocabulary Object Detection, 400×599)

Uses the COCO-calibrated grounding-coco-val2017-ql-v3 model. The input image is images/grounding_dino/demo.jpg bundled with the demo, and the prompt is Horse. Clouds. Grasses. Sky. Hill.. One dummy inference at model Open is excluded, and the table reports the median of the next 3 runs. Model loading and pre/post-processing are excluded.

ItemORT CPUORT NPUailia CPUailia NPU
Inference time (median)7,531.2 ms6,979.8 ms6,104.4 ms3,840.2 ms
Detections15141515

In this model, the 347 fixed-weight MatMuls and the 109 MatMuls with two dynamic inputs are all converted to calibrated QuantizeLinear + MatMulInteger. ailia NPU runs the fixed-weight MatMuls on the NPU; because the MatMuls with two dynamic inputs are small, they run with NEON integer arithmetic on the CPU. Compared with the previous dynamic-quantization model, all seven horse detections are preserved, with a mean box IoU of 0.987 (minimum 0.978). This is an output comparison on the demo image, not a detection-accuracy (mAP) evaluation. ORT NPU outputs may vary between inferences.

Depth Anything V2 Metric Depth Small (Indoor Depth Estimation, 518×518)

Uses the COCO-calibrated depth-coco-val2017-conv-v4 model, with the first Bedroom frame (00000.jpg) as input. One dummy inference at model Open is excluded, and the table reports the median of the next 3 runs. Model loading, preprocessing and drawing are excluded.

ItemORT CPUORT NPUailia CPUailia NPU
Inference time (median)2,796.2 ms2,575.9 ms3,125.7 ms2,045.1 ms

In this model, the 48 fixed-weight MatMuls, 24 Attention MatMuls and 28 convolutions are converted to calibrated QuantizeLinear with MatMulInteger / ConvInteger, and ailia NPU runs them on the NPU. The three narrow, high-resolution output-head convolutions remain FP32 because they were slower on the NPU. Softmax and ConvTranspose also remain FP32. The ORT Neutron EP runs only the fixed-weight MatMuls on the NPU.

In an earlier comparison over the five Bedroom frames, the ailia CPU and ailia NPU outputs differed by 1.14 cm on average (23.84 cm maximum), the difference from ORT CPU was 4.55 cm on average (50.15 cm maximum), and the difference from the NPU model before convolution quantization was 4.90 cm on average (59.79 cm maximum). These are comparisons between outputs, not accuracy against ground-truth depth.

YOLOX-S (Object Detection, 320×320)

Uses the COCO-calibrated INT8 model (83 ConvInteger nodes), batch 1, with images/yolox/input.jpg bundled with the demo. One dummy inference at model Open is excluded, and the table reports the median of the next 10 runs. Preprocessing, NMS and drawing are excluded.

ItemORT CPUORT NPUailia CPUailia NPU
Inference time (median)793.9 ms795.7 ms436.9 ms114.8 ms
FPS1.261.262.298.71

The CPU figures measure the same ConvInteger model, not an optimized FP32 model. ailia's CPU execution uses tiled NEON INT8 kernels with cached fixed weights. The ORT Neutron EP runs ConvInteger on the CPU, so ORT NPU takes about the same time as ORT CPU. ailia NPU requantizes the outputs of supported operations on the NPU. This uses different rounding from CPU execution, so outputs are not bit-identical to the CPU.

On all 5,000 COCO val2017 images, AP is 29.00 for INT8 (ailia NPU) versus 30.42 for FP32 (host ORT CPU), a decrease of 1.42 points. The evaluation images are the same as the calibration data, so this is not accuracy on an independent test set.

References