Skip to content

Commit

Permalink
benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
goshacodes committed Jul 23, 2024
1 parent 4fc4f8e commit 1cc7527
Show file tree
Hide file tree
Showing 14 changed files with 1,663 additions and 9,759 deletions.
15 changes: 8 additions & 7 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ lazy val json4s = project.in(modules / "json4s")
.settings(
name := "tethys-json4s",
libraryDependencies ++= Seq(
"org.json4s" %% "json4s-ast" % "4.0.6"
"org.json4s" %% "json4s-ast" % "4.1.0-M6"
)
)
.dependsOn(core)
Expand Down Expand Up @@ -220,13 +220,14 @@ lazy val benchmarks = project.in(modules / "benchmarks")
publishTo := None,
libraryDependencies ++= Seq(
"io.spray" %% "spray-json" % "1.3.6",
"org.json4s" %% "json4s-native" % "4.0.6",
"org.json4s" %% "json4s-jackson" % "4.0.6",
"io.circe" %% "circe-core" % "0.14.3",
"io.circe" %% "circe-generic" % "0.14.3",
"io.circe" %% "circe-jawn" % "0.14.3",
"org.json4s" %% "json4s-native" % "4.0.7",
"org.json4s" %% "json4s-jackson" % "4.0.7",
"io.circe" %% "circe-core" % "0.14.9",
"io.circe" %% "circe-generic" % "0.14.9",
"io.circe" %% "circe-jawn" % "0.14.9",
"io.circe" %% "circe-jackson210" % "0.14.0",
"com.typesafe.play" %% "play-json" % "2.10.0-RC7",
"dev.zio" %% "zio-json" % "0.7.1",
"com.typesafe.play" %% "play-json" % "2.10.5",
"org.knowm.xchart" % "xchart" % "3.8.2" exclude("de.erichseifert.vectorgraphics2d", "VectorGraphics2D") withSources()
),
scalacOptions ++= {
Expand Down
30 changes: 13 additions & 17 deletions modules/benchmarks/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,13 @@

name \ size|128b|1kb|128kb|1mb|32mb
---|---|---|---|---|---
tethys-jackson|658951.389|94736.726|733.012|75.496|2.074
pure-jackson|605937.562|105919.836|868.511|95.066|1.929
circe-jawn|500633.274|66962.275|498.646|51.116|0.237
circe-jackson|176264.381|25799.317|151.52|16.372|0.089
json4s-jackson|81864.174|12649.038|89.053|10.534|0.067
json4s-native|77152.505|11726.397|80.094|9.209|0.034
play-json|214148.365|28851.521|186.734|17.297|0.081
spray-json|351719.553|47149.179|347.749|36.3|0.345
tethys-jackson|1442640.742|160561.914|1342.185|160.448|3.014
pure-jackson|1189799.594|212591.263|1721.623|184.572|3.733
circe-jawn|866471.554|112596.096|945.419|124.767|1.523
circe-jackson|348613.16|48776.933|363.005|39.485|0.872
play-json|534060.4|64804.735|499.574|43.91|0.927
spray-json|971689.213|121363.845|1028.76|123.771|2.188
zio-json|2001448.661|255068.591|2001.826|237.499|3.439

![ParsingPerformance](./images/ParsingPerformance.png)

Expand All @@ -21,15 +20,12 @@ spray-json|351719.553|47149.179|347.749|36.3|0.345

name \ size|128b|1kb|128kb|1mb|32mb
---|---|---|---|---|---
tethys-jackson|933624.586|220229.694|1641.102|205.924|3.484
pure-jackson|563304.441|179625.306|1876.364|220.472|4.014
circe|621310.962|86294.08|616.222|56.9|0.801
java.lang.StringBuilder|1365829.788|197955.272|1527.102|167.981|4.629
scala.StringBuilder|1288411.486|196492.325|1531.357|155.445|4.544
json4s-jackson|185964.967|24597.714|178.298|20.374|0.377
json4s-native|197545.065|25536.414|194.544|21.216|0.728
play-json|197279.434|27718.526|208.257|22.433|0.489
spray-json|409063.537|54303.176|384.963|39.317|0.54
tethys-jackson|1819887.866|403267.403|3265.018|300.502|11.786
pure-jackson|1109155.693|427421.925|3096.09|392.062|10.441
circe|1348593.267|177497.011|1255.093|157.518|2.706
play-json|327191.603|47736.655|360.734|49.417|1.064
spray-json|1172370.195|148580.554|1053.782|142.164|3.425
zio-json|2191564.981|266636.44|2092.48|239.598|7.347

![WritingPerformance](./images/WritingPerformance.png)

Expand Down
Binary file modified modules/benchmarks/images/ParsingPerformance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified modules/benchmarks/images/WritingPerformance.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 1cc7527

Please sign in to comment.