Replies: 2 comments 4 replies
-
It was there before, but removed by this commit. |
Beta Was this translation helpful? Give feedback.
2 replies
-
@okuramasafumi I did some quick benchmarks, and looks like AccountSerializer does not have any associations, just attributes. # Active record load
a = Account.first
# Uses jsonapi-serializer
irb(main):250:0> puts Benchmark.measure { 100_000.times { App::V1::AccountSerializer.new(a).to_json } }
2.455879 0.028570 2.484449 ( 2.484457)
# Uses Alba
irb(main):253:0> puts Benchmark.measure { 100_000.times { App::V2::AccountSerializer.new(a).to_json } }
7.511837 0.066197 7.578034 ( 7.578014) |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Are there any benchmarks comparing it with https://github.com/jsonapi-serializer/jsonapi-serializer
https://medium.com/@raj.b.stretz/active-model-serializer-vs-fast-json-api-serializer-8338b939f01f
Beta Was this translation helpful? Give feedback.
All reactions