Benchmark
Benchmark run from 2026-04-14 14:42:03.656433Z 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.96 K | 201.71 µs | ±5.04% | 198.17 µs | 229.54 µs |
| top_k=10 + output_fields | 3.35 K | 298.45 µs | ±3.78% | 295.96 µs | 330.58 µs |
| top_k=10 | 3.25 K | 307.49 µs | ±4.53% | 305.29 µs | 344.46 µs |
| top_k=10 + filter | 1.83 K | 546.31 µs | ±4.57% | 543.96 µs | 622.38 µs |
| top_k=100 | 0.72 K | 1390.04 µs | ±2.14% | 1387.88 µs | 1476.55 µs |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| hnsw ef=64 top_k=10 | 4.96 K | |
| top_k=10 + output_fields | 3.35 K | 1.48x |
| top_k=10 | 3.25 K | 1.52x |
| top_k=10 + filter | 1.83 K | 2.71x |
| top_k=100 | 0.72 K | 6.89x |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| hnsw ef=64 top_k=10 | 4.81 KB | |
| top_k=10 + output_fields | 4.03 KB | 0.84x |
| top_k=10 | 4.80 KB | 1.0x |
| top_k=10 + filter | 4.80 KB | 1.0x |
| top_k=100 | 35.74 KB | 7.43x |