Skip to main content

Performance

The performance of Panko is measured using microbenchmarks and load testing.

Microbenchmarks

The following microbenchmarks are run on MacBook Pro (16-inch, 2021, M1 Max), Ruby 3.2.0 with Rails 7.0.5 demonstrating the performance of ActiveModelSerializers 0.10.13 and Panko 0.8.0

BenchmarkAMS ip/sPanko ip/s
Simple_Posts_230011.72523.05
Simple_Posts_50557.2923,011.9
HasOne_Posts_23005.91233.44
HasOne_Posts_50285.810,362.79

Real-world benchmark

The real-world benchmark here is endpoint which serializes 7,884 entries with 48 attributes and no associations. The benchmark took place in environment that simulates production environment and run using wrk from machine on the same cluster.

MetricAMSPanko
Avg Response Time4.89s1.48s
Max Response Time5.42s1.83s
99th Response Time5.42s1.74s
Total Requests61202

Thanks to Bringg for providing the infrastructure for the benchmarks