panko_serializer 0.7.6 → 0.7.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/docs.yml +1 -1
- data/.github/workflows/ruby.yml +6 -3
- data/docs/docs/performance.md +6 -6
- data/docs/package-lock.json +12345 -26
- data/ext/panko_serializer/attributes_writer/attributes_writer.c +1 -1
- data/ext/panko_serializer/attributes_writer/attributes_writer.h +1 -1
- data/ext/panko_serializer/serialization_descriptor/serialization_descriptor.c +1 -1
- data/lib/panko/serializer.rb +8 -2
- data/lib/panko/serializer_resolver.rb +1 -0
- data/lib/panko/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a55772372c4ae9e4d147a131c5dd59090b7dc928adc5e6830403246918fdb90b
|
4
|
+
data.tar.gz: e6ee39b058b87b81d19385d4ae03fb938e2c04859641499454ca7debe99aceb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eac9a9cad9ca9b99146527c25a935347b51a110ab36b0bc58165c961780415068c9899ebbe15ec3eb594a112d18665c54b5d5afd77ebd2449b078faa85e37981
|
7
|
+
data.tar.gz: 87081d7cc24b5a69b3c409232abedb79daab75c263aea45b405d24ef71570df0c10f8821a741f88bb4e690d38b802bd6f43a82c0cee4a5e24d0ebba04849318a
|
data/.github/workflows/docs.yml
CHANGED
data/.github/workflows/ruby.yml
CHANGED
@@ -9,13 +9,16 @@ jobs:
|
|
9
9
|
strategy:
|
10
10
|
fail-fast: false
|
11
11
|
matrix:
|
12
|
-
ruby: ['2.6', '2.7', '3.0']
|
13
|
-
rails: ['6.0.0', '6.1.0']
|
12
|
+
ruby: ['2.6', '2.7', '3.0', '3.1.0']
|
13
|
+
rails: ['6.0.0', '6.1.0', '7.0.0']
|
14
|
+
exclude:
|
15
|
+
- ruby: '2.6'
|
16
|
+
rails: '7.0.0'
|
14
17
|
|
15
18
|
steps:
|
16
19
|
- uses: actions/checkout@v2
|
17
20
|
- name: Set up Ruby ${{ matrix.ruby }}
|
18
|
-
uses:
|
21
|
+
uses: ruby/setup-ruby@v1
|
19
22
|
with:
|
20
23
|
ruby-version: ${{ matrix.ruby }}
|
21
24
|
|
data/docs/docs/performance.md
CHANGED
@@ -8,15 +8,15 @@ The performance of Panko is measured using microbenchmarks and load testing.
|
|
8
8
|
|
9
9
|
## Microbenchmarks
|
10
10
|
|
11
|
-
The following microbenchmarks are run on MacBook Pro (
|
12
|
-
demonstrating the performance of ActiveModelSerializers 0.10.
|
11
|
+
The following microbenchmarks are run on MacBook Pro (16-inch, 2021, M1 Max), Ruby 3.1.1 with Rails 7.0.2.3
|
12
|
+
demonstrating the performance of ActiveModelSerializers 0.10.13 and Panko 0.7.6
|
13
13
|
|
14
14
|
| Benchmark | AMS ip/s | Panko ip/s |
|
15
15
|
| ----------------- | -------- | ---------- |
|
16
|
-
| Simple_Posts_2300 |
|
17
|
-
| Simple_Posts_50 |
|
18
|
-
| HasOne_Posts_2300 |
|
19
|
-
| HasOne_Posts_50 |
|
16
|
+
| Simple_Posts_2300 | 11.15 | 489.71 |
|
17
|
+
| Simple_Posts_50 | 517.85 | 21,366.93 |
|
18
|
+
| HasOne_Posts_2300 | 5.68 | 229.57 |
|
19
|
+
| HasOne_Posts_50 | 268.14 | 10,126.33 |
|
20
20
|
|
21
21
|
## Real-world benchmark
|
22
22
|
|