Benchmark

Benchmark run from 2026-04-14 14:43:17.610996Z UTC

System

Benchmark suite executing on the following system:

Operating System macOS
CPU Information Apple M4 Pro
Number of Available Cores 12
Available Memory 24 GB
Elixir Version 1.19.5
Erlang Version 28.4.1

Configuration

Benchmark suite executing with the following configuration:

:time 10 s
:parallel 1
:warmup 2 s

Statistics

Run Time

Name IPS Average Devitation Median 99th %
hnsw ef=64 top_k=10 4.71 K 212.38 µs ±5.33% 209.63 µs 242.53 µs
top_k=10 + output_fields 2.63 K 380.88 µs ±11.94% 374.96 µs 517.92 µs
top_k=10 2.52 K 396.32 µs ±11.94% 387.75 µs 600.53 µs
top_k=10 + filter 0.85 K 1179.09 µs ±32.80% 1092.88 µs 2299.94 µs
top_k=100 0.66 K 1521.19 µs ±5.23% 1502.00 µs 1879.67 µs

Run Time Comparison

Name IPS Slower
hnsw ef=64 top_k=10 4.71 K  
top_k=10 + output_fields 2.63 K 1.79x
top_k=10 2.52 K 1.87x
top_k=10 + filter 0.85 K 5.55x
top_k=100 0.66 K 7.16x

Memory Usage

Name Average Factor
hnsw ef=64 top_k=10 4.80 KB  
top_k=10 + output_fields 4.02 KB 0.84x
top_k=10 4.73 KB 0.99x
top_k=10 + filter 4.73 KB 0.99x
top_k=100 35.66 KB 7.43x