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 parsing of floats and doubles #1265

Merged

Conversation

plokhotnyuk
Copy link
Contributor

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

Before

Benchmark                          (size)   Mode  Cnt        Score       Error  Units
ArrayOfDoublesReading.zioJson         128  thrpt    5   135920.917 ±  2255.318  ops/s
ArrayOfFloatsReading.zioJson          128  thrpt    5   213677.601 ±  5056.059  ops/s
GeoJSONReading.zioJson                N/A  thrpt    5     9315.513 ±   271.037  ops/s
PrimitivesReading.zioJson             N/A  thrpt    5  3515039.119 ± 21043.374  ops/s

After

Benchmark                          (size)   Mode  Cnt        Score       Error  Units
ArrayOfDoublesReading.zioJson         128  thrpt    5   149040.245 ±  1606.733  ops/s
ArrayOfFloatsReading.zioJson          128  thrpt    5   233975.363 ± 28846.808  ops/s
GeoJSONReading.zioJson                N/A  thrpt    5    10582.132 ±   139.006  ops/s
PrimitivesReading.zioJson             N/A  thrpt    5  3618949.962 ± 74998.630  ops/s

@plokhotnyuk plokhotnyuk requested a review from a team as a code owner January 30, 2025 10:55
@plokhotnyuk plokhotnyuk force-pushed the more-efficient-reading-of-numbers branch from 480568e to d0e37e4 Compare January 30, 2025 11:14
@plokhotnyuk plokhotnyuk merged commit b5356f0 into zio:series/2.x Jan 30, 2025
31 checks passed
@plokhotnyuk plokhotnyuk deleted the more-efficient-reading-of-numbers branch January 30, 2025 11:23
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