Results 1 to 5 of 5

Thread: Slow Nashhorn javascript engine performance on Opensuse LEAP 42.1

  1. #1

    Question Slow Nashhorn javascript engine performance on Opensuse LEAP 42.1

    Hi,

    checked out test menioned in http://ariya.ofilabs.com/2014/03/nas...the-block.html
    (https://bitbucket.org/ariya/nashorn-speedtest)
    and see unexpected slow results of Nashorn javascript engine (Nashhorn expected to be 4 times faster that rhino, but on my configuration it is slightly slower than rhino )

    System configuration:
    Opensuse LEAP 42.1

    > java -version
    openjdk version "1.8.0_60"
    OpenJDK Runtime Environment (build 1.8.0_60-b27)
    OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)

    > cat /proc/cpuinfo |grep Hz
    model name : Intel(R) Pentium(R) CPU G3420 @ 3.20GHz
    cpu MHz : 800.000


    results of 30 tests, lesser is better

    == Rhino ==
    Run #1: 1983 ms
    Run #2: 977 ms
    Run #3: 1207 ms
    Run #4: 701 ms
    Run #5: 1694 ms
    Run #6: 549 ms
    Run #7: 605 ms
    Run #8: 519 ms
    Run #9: 568 ms
    Run #10: 505 ms
    Run #11: 538 ms
    Run #12: 501 ms
    Run #13: 532 ms
    Run #14: 500 ms
    Run #15: 528 ms
    Run #16: 498 ms
    Run #17: 523 ms
    Run #18: 491 ms
    Run #19: 515 ms
    Run #20: 492 ms
    Run #21: 520 ms
    Run #22: 489 ms
    Run #23: 514 ms
    Run #24: 492 ms
    Run #25: 515 ms
    Run #26: 488 ms
    Run #27: 509 ms
    Run #28: 490 ms
    Run #29: 510 ms
    Run #30: 489 ms

    == Nashorn ==
    Run #1: 4396 ms
    Run #2: 2696 ms
    Run #3: 2587 ms
    Run #4: 2542 ms
    Run #5: 2436 ms
    Run #6: 2579 ms
    Run #7: 1168 ms
    Run #8: 783 ms
    Run #9: 755 ms
    Run #10: 746 ms
    Run #11: 795 ms
    Run #12: 767 ms
    Run #13: 965 ms
    Run #14: 763 ms
    Run #15: 750 ms
    Run #16: 736 ms
    Run #17: 732 ms
    Run #18: 839 ms
    Run #19: 773 ms
    Run #20: 899 ms
    Run #21: 656 ms
    Run #22: 622 ms
    Run #23: 595 ms
    Run #24: 599 ms
    Run #25: 604 ms
    Run #26: 587 ms
    Run #27: 653 ms
    Run #28: 722 ms
    Run #29: 564 ms
    Run #30: 505 ms


    I rerun tests on more slow processor and on different operating system
    Results of rhino tests is expectedly slower than on first configuration due to slower CPU,
    but Nashhorn engine results are impressive, about 4-8 times faster that Rhino

    Why is Openuse JVM not showing similar results?

    System configuration:
    Gentoo

    > java -version
    openjdk version "1.8.0_60"
    OpenJDK Runtime Environment (IcedTea 3.0.0pre07+r7836b5436b70) (Gentoo icedtea-3.0.0_pre07-r1)
    OpenJDK 64-Bit Server VM (build 25.60-b23, mixed mode)


    cat /proc/cpuinfo |grep Hz
    model name : Intel(R) Xeon(R) CPU X5670 @ 2.93GHz
    cpu MHz : 2934.000

    results of 30 tests, lesser is better
    == Rhino ==
    Run #1: 1936 ms
    Run #2: 1535 ms
    Run #3: 898 ms
    Run #4: 1100 ms
    Run #5: 1353 ms
    Run #6: 776 ms
    Run #7: 752 ms
    Run #8: 771 ms
    Run #9: 745 ms
    Run #10: 1041 ms
    Run #11: 1287 ms
    Run #12: 1503 ms
    Run #13: 828 ms
    Run #14: 994 ms
    Run #15: 939 ms
    Run #16: 947 ms
    Run #17: 955 ms
    Run #18: 1019 ms
    Run #19: 849 ms
    Run #20: 857 ms
    Run #21: 849 ms
    Run #22: 868 ms
    Run #23: 1653 ms
    Run #24: 1602 ms
    Run #25: 1276 ms
    Run #26: 1322 ms
    Run #27: 1449 ms
    Run #28: 820 ms
    Run #29: 909 ms
    Run #30: 881 ms

    == Nashorn ==
    Run #1: 4801 ms
    Run #2: 1915 ms
    Run #3: 1383 ms
    Run #4: 810 ms
    Run #5: 354 ms
    Run #6: 331 ms
    Run #7: 311 ms
    Run #8: 306 ms
    Run #9: 278 ms
    Run #10: 279 ms
    Run #11: 255 ms
    Run #12: 253 ms
    Run #13: 238 ms
    Run #14: 232 ms
    Run #15: 236 ms
    Run #16: 273 ms
    Run #17: 248 ms
    Run #18: 229 ms
    Run #19: 230 ms
    Run #20: 236 ms
    Run #21: 241 ms
    Run #22: 361 ms
    Run #23: 312 ms
    Run #24: 312 ms
    Run #25: 254 ms
    Run #26: 333 ms
    Run #27: 241 ms
    Run #28: 216 ms
    Run #29: 214 ms
    Run #30: 224 ms

  2. #2

    Default Re: Slow Nashhorn javascript engine performance on Opensuse LEAP 42.1

    Did your other systems use the OpenJDK? Most systems use the Sun (Oracle)
    JRE for things, so I'd try testing with that to see if it impacts things
    significantly.


    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  3. #3

    Default Re: Slow Nashhorn javascript engine performance on Opensuse LEAP 42.1

    Did your other systems use the OpenJDK? Most systems use the Sun (Oracle)
    JRE for things, so I'd try testing with that to see if it impacts things
    significantly.


    --
    Good luck.

    If you find this post helpful and are logged into the web interface,
    show your appreciation and click on the star below...

  4. #4

    Default Re: Slow Nashhorn javascript engine performance on Opensuse LEAP 42.1

    Other system is using IcedTea 3.0.0pre07+r7836b5436b70

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,025
    Blog Entries
    2

    Default Re: Slow Nashhorn javascript engine performance on Opensuse LEAP 42.1

    You might find more enlightened comment on a nashorn mail list (or similar).

    I doubt that it would make much diff what distro is running, your tests should rely purely on hardware and the JRE which should be consistent across most similar platforms.

    Your testing suggests that there should be a public posting of results by the community to understand whether your results are consistent or anomalous.

    TSU

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •