Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More efficient decoding of arrays #1278

Conversation

plokhotnyuk
Copy link
Contributor

@plokhotnyuk plokhotnyuk commented Feb 2, 2025

Tested with Scala 3 and JDK 21 on Intel® Core™ i7-11800H:

Before

Benchmark                          (size)   Mode  Cnt        Score       Error  Units
ArrayOfBigDecimalsReading.zioJson     128  thrpt    5   151187.739 ±   459.966  ops/s
ArrayOfBigIntsReading.zioJson         128  thrpt    5   137918.018 ±  1377.553  ops/s
ArrayOfBytesReading.zioJson           128  thrpt    5  1013394.269 ±  5615.047  ops/s
ArrayOfDoublesReading.zioJson         128  thrpt    5   304200.753 ±  4779.653  ops/s
ArrayOfFloatsReading.zioJson          128  thrpt    5   443325.617 ±  6852.218  ops/s
ArrayOfIntsReading.zioJson            128  thrpt    5   778311.952 ±  6004.551  ops/s
ArrayOfLongsReading.zioJson           128  thrpt    5   477036.224 ±  7342.575  ops/s
ArrayOfShortsReading.zioJson          128  thrpt    5  1044668.559 ± 35687.214  ops/s

After

Benchmark                          (size)   Mode  Cnt        Score        Error  Units
ArrayOfBigDecimalsReading.zioJson     128  thrpt    5   141654.805 ±   3124.563  ops/s
ArrayOfBigIntsReading.zioJson         128  thrpt    5   140655.497 ±   1978.970  ops/s
ArrayOfBytesReading.zioJson           128  thrpt    5  1282858.364 ±   7311.231  ops/s
ArrayOfDoublesReading.zioJson         128  thrpt    5   315393.767 ±   4103.181  ops/s
ArrayOfFloatsReading.zioJson          128  thrpt    5   460529.057 ±  13222.819  ops/s
ArrayOfIntsReading.zioJson            128  thrpt    5   907623.346 ±  15618.025  ops/s
ArrayOfLongsReading.zioJson           128  thrpt    5   490157.638 ±   7324.797  ops/s
ArrayOfShortsReading.zioJson          128  thrpt    5  1257591.173 ±  11435.255  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner February 2, 2025 15:26
@plokhotnyuk plokhotnyuk changed the title More efficient decoding of collections More efficient decoding of arrays Feb 2, 2025
@plokhotnyuk plokhotnyuk merged commit 5c1b9ae into zio:series/2.x Feb 2, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-decoding-of-collections branch February 2, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant