Benchmark
Benchmark run from 2026-04-14 14:22:55.610846Z 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 | 5 s |
|---|---|
| :parallel | 1 |
| :warmup | 2 s |
Statistics
Input: nnz_100
Run Time
| Name | IPS | Average | Devitation | Median | 99th % |
|---|---|---|---|---|---|
| from_sparse fp32 | 442.08 K | 2.26 µs | ±304.34% | 2.08 µs | 3.79 µs |
| from_sparse fp16 | 335.96 K | 2.98 µs | ±215.89% | 2.79 µs | 5.29 µs |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| from_sparse fp32 | 442.08 K | |
| from_sparse fp16 | 335.96 K | 1.32x |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| from_sparse fp32 | 7.97 KB | |
| from_sparse fp16 | 16.56 KB | 2.08x |
Input: nnz_1000
Run Time
| Name | IPS | Average | Devitation | Median | 99th % |
|---|---|---|---|---|---|
| from_sparse fp32 | 49.38 K | 20.25 µs | ±8.55% | 20.04 µs | 23.96 µs |
| from_sparse fp16 | 35.88 K | 27.87 µs | ±11.86% | 27.58 µs | 35.04 µs |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| from_sparse fp32 | 49.38 K | |
| from_sparse fp16 | 35.88 K | 1.38x |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| from_sparse fp32 | 78.28 KB | |
| from_sparse fp16 | 164.22 KB | 2.1x |
Input: nnz_500
Run Time
| Name | IPS | Average | Devitation | Median | 99th % |
|---|---|---|---|---|---|
| from_sparse fp32 | 99.13 K | 10.09 µs | ±35.08% | 9.92 µs | 12.92 µs |
| from_sparse fp16 | 71.27 K | 14.03 µs | ±21.54% | 13.88 µs | 22.42 µs |
Run Time Comparison
| Name | IPS | Slower |
|---|---|---|
| from_sparse fp32 | 99.13 K | |
| from_sparse fp16 | 71.27 K | 1.39x |
Memory Usage
| Name | Average | Factor |
|---|---|---|
| from_sparse fp32 | 39.22 KB | |
| from_sparse fp16 | 82.19 KB | 2.1x |