Sha256: b1f211e21f0c55a64afb8b03058f620b590f29d1c607944173568fa58bc167b8

Contents?: true

Size: 1.15 KB

Versions: 9

Compression:

Stored size: 1.15 KB

Contents

# Performance

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

## Microbenchmarks

The following microbenchmarks are run on MacBook Pro (Retina, 15-inch, 2017), Ruby 2.5.1 with Rails 5.2.1
demonstrating the performance of ActiveModelSerializers 0.10.7 and Panko 0.5.6

| Benchmark         | AMS ip/s | Panko ip/s |
| ----------------- | -------- | ---------- |
| Simple_Posts_2300 | 9.47     | 185.9      |
| Simple_Posts_50   | 450.49   | 9,237.66   |
| HasOne_Posts_2300 | 4.27     | 104.39     |
| HasOne_Posts_50   | 219.67   | 4,901.09   |

## 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.

| Metric             | AMS   | Panko |
| ------------------ | ----- | ----- |
| Avg Response Time  | 4.89s | 1.48s |
| Max Response Time  | 5.42s | 1.83s |
| 99th Response Time | 5.42s | 1.74s |
| Total Requests     | 61    | 202   |

_Thanks to [Bringg](https://www.bringg.com) for providing the infrastructure for the benchmarks_

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
panko_serializer-0.7.2 docs/performance.md
panko_serializer-0.7.1 docs/performance.md
panko_serializer-0.7.0 docs/performance.md
panko_serializer-0.6.0 docs/performance.md
panko_serializer-0.5.10 docs/performance.md
panko_serializer-0.5.9 docs/performance.md
panko_serializer-0.5.8 docs/performance.md
panko_serializer-0.5.7 docs/performance.md
panko_serializer-0.5.6 docs/performance.md