Benchmark

Smoke run for scenario and documentation verification. Run mix bench for stable local measurements.

System

Benchmark suite executing on the following system:

Operating System macOS
CPU Information Apple M4 Max
Number of Available Cores 16
Available Memory 128 GB
Elixir Version 1.20.2
Erlang Version 28.5

Configuration

Benchmark suite executing with the following configuration:

:time 10 ms
:parallel 1
:warmup 0 ns

Statistics

Run Time

Name IPS Average Deviation Median 99th %
encode artifact 43.62 K 22.93 µs ±28.93% 21.88 µs 54.15 µs
decode artifact 27.29 K 36.64 µs ±9.68% 35.75 µs 51.18 µs
render text scalar 19.70 K 50.77 µs ±11.89% 49.13 µs 76.74 µs
render text 100-item loop 3.20 K 312.70 µs ±270.84% 121.92 µs 4934.63 µs
compile text 0.198 K 5056.94 µs ±5.22% 5056.94 µs 5243.63 µs
compile MJML email 0.149 K 6704.06 µs ±4.30% 6704.06 µs 6908.04 µs
render email channels 0.0536 K 18671.33 µs ±0.00% 18671.33 µs 18671.33 µs

Run Time Comparison

Name IPS Slower
encode artifact 43.62 K  
decode artifact 27.29 K 1.6x
render text scalar 19.70 K 2.21x
render text 100-item loop 3.20 K 13.64x
compile text 0.198 K 220.56x
compile MJML email 0.149 K 292.4x
render email channels 0.0536 K 814.35x