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

Upgrade versions of Scala, Sbt, and dependencies + add jsoniter-scala benchmark #1

Closed
wants to merge 2 commits into from

Conversation

plokhotnyuk
Copy link

@plokhotnyuk plokhotnyuk commented Aug 10, 2018

Here are results from my notebook Intel(R) Core(TM) i7-7700HQ CPU @ 2.80GHz:

[info] REMEMBER: The numbers below are just data. To gain reusable insights, you need to follow up on
[info] why the numbers are the way they are. Use profilers (see -prof, -lprof), design factorial
[info] experiments, perform baseline and negative tests that provide experimental control, make sure
[info] the benchmarking environment is safe on JVM/OS/HW level, ask for reviews from the domain experts.
[info] Do not assume the numbers tell you what you want them to tell.
[info] Benchmark                 (entry)  Mode  Cnt      Score      Error  Units
[info] Benchmarks.fastJson         empty  avgt    5     46.047 ±    1.775  ns/op
[info] Benchmarks.fastJson         short  avgt    5    237.438 ±    7.742  ns/op
[info] Benchmarks.fastJson        medium  avgt    5    594.204 ±    6.516  ns/op
[info] Benchmarks.fastJson          long  avgt    5   2583.642 ±  275.319  ns/op
[info] Benchmarks.fastJson          huge  avgt    5  21186.186 ±  607.314  ns/op
[info] Benchmarks.fastJson         giant  avgt    5  76884.435 ± 3749.993  ns/op
[info] Benchmarks.jackson          empty  avgt    5     82.146 ±    2.295  ns/op
[info] Benchmarks.jackson          short  avgt    5    255.565 ±   28.266  ns/op
[info] Benchmarks.jackson         medium  avgt    5    551.673 ±   21.993  ns/op
[info] Benchmarks.jackson           long  avgt    5   2586.174 ±   75.695  ns/op
[info] Benchmarks.jackson           huge  avgt    5  20481.989 ±  996.323  ns/op
[info] Benchmarks.jackson          giant  avgt    5  81141.037 ± 1467.107  ns/op
[info] Benchmarks.jsoniterScala    empty  avgt    5     12.664 ±    0.133  ns/op
[info] Benchmarks.jsoniterScala    short  avgt    5    135.633 ±   10.227  ns/op
[info] Benchmarks.jsoniterScala   medium  avgt    5    230.202 ±    2.175  ns/op
[info] Benchmarks.jsoniterScala     long  avgt    5    670.264 ±   72.833  ns/op
[info] Benchmarks.jsoniterScala     huge  avgt    5   6846.669 ±   43.243  ns/op
[info] Benchmarks.jsoniterScala    giant  avgt    5  24414.257 ±  556.114  ns/op
[info] Benchmarks.mison            empty  avgt    5    824.969 ±   35.711  ns/op
[info] Benchmarks.mison            short  avgt    5   1457.066 ±  123.831  ns/op
[info] Benchmarks.mison           medium  avgt    5   2256.164 ±   76.062  ns/op
[info] Benchmarks.mison             long  avgt    5   3322.473 ±  145.641  ns/op
[info] Benchmarks.mison             huge  avgt    5  17106.021 ±  966.839  ns/op
[info] Benchmarks.mison            giant  avgt    5  62761.227 ± 1831.332  ns/op

Commands that were used to build and launch benchmarks:

cd native
RUSTFLAGS="-C target-cpu=native" cargo build --release
cd ..
cp -r native benchmarks/native
sbt -no-colors 'benchmarks/jmh:run -jvm /usr/lib/jvm/java-8-oracle/bin/java .*'

@plokhotnyuk
Copy link
Author

Hi, @guillaumebort ! Please review a proposed PR and check results of benchmarks.

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.

None yet

2 participants