<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;">Hi Francois,<br class=""><br class="">unfortunately It seems that I might made a mistake… I don’t understand where, however...<br class=""><br class="">This was an asynchronous test with request/reply (messaging). No network access, all inside the same JVM. To measure time I stamped every request with the current time and&nbsp;computed the delta when the reply came in. So I measured the latency. I don’t know why Nashorn had such a huge difference in latency over GraalVM.<br class=""><br class="">I did some other tests today, async as well as sync. All request/reply. Unfortunately the results were quite similar. Both were able to handle about 60K requests per second. In some&nbsp;tests Nashorn beats GraalVM but not that much. I saw a bit more CPU usage in GraalVM and a longer warmup time for GraalVM until it reaches constant throughput.<br class=""><br class="">I’m using JSR223 scripting engine. Except host access configured via Context for GraalVM there is no difference to the Nashorn engine. We use ES5. The JS are quite large and nested&nbsp;IIFEs (generated). The scripts run in different threads with engine scope. Each script within their own thread context. They communicate through queues that are provided from the&nbsp;Java part. All actions (events) are initiated from the Java part and then interface into the JS parts and from there back into Java and so fort.<br class=""><br class="">I’d be glad to setup another test that might bring GraalVM in front of Nashorn.<br class=""><br class="">Aside from this I’m quite happy with GraalVM. After a few changes I was able to run all our scripts with it. We will use GraalVM in our Docker distribution for the next release.<br class=""><br class="">Regards,<br class="">Andreas<br class="">--&nbsp;<br class="">Andreas Mueller<br class="">IIT Software GmbH<br class=""><a href="https://urldefense.com/v3/__http://www.swiftmq.com__;!!GqivPVa7Brio!OTkOhMCgnkqvd7t-10OreduWGsgKGo6aeC4qf7UPdRTdVwZrbxidTID8-8RFRjHESTRQyg$" class="">http://www.swiftmq.com</a><br class=""><br class=""><div class=""><img apple-inline="yes" id="B3B754F8-4B55-40FB-9AA8-3AF07D890465" src="cid:A0309C4C-D818-48E8-A9CE-B43C74051926@multi.box" class=""><br class=""><br class=""><blockquote type="cite" class="">On 25. Mar 2020, at 16:05, Francois Farquet &lt;francois.farquet@oracle.com&gt; wrote:<br class=""><br class="">Hi Andreas,<br class=""><br class="">This is a great news ! Going down from 25 minutes to less than a&nbsp;minute for the same workload, that's game changer.<br class=""><br class="">If you happen to share your migration success story and/or your&nbsp;benchmark in a blog post or any other public way, please let us&nbsp;know !<br class=""><br class="">Bests,<br class=""><br class="">- Francois<br class=""><br class=""><br class=""><br class="">On 25.03.20 15:50, Andreas Mueller&nbsp;wrote:<br class=""><blockquote type="cite" cite="mid:01020171122ca37c-bb365879-d3c8-4182-a104-7599f6a799dc-000000@eu-west-1.amazonses.com" class="">Hi,<br class=""><br class="">I did a benchmark with a messaging application&nbsp;(quite a mix of JS/Java) on JDK 11.0.2/Nashorn and GraalVM&nbsp;20.0.0. Multiple runs for warmup. Here are the best results:<br class=""><br class="">On JDK 11.0.2/Nashorn: Duration 1’524’043 ms.<br class=""><br class="">On GraalVM 20.0.0: Duration 47’813 ms.<br class=""><br class="">Wow! It’s 31 times faster under GraalVM!<br class=""><br class="">Thanks for providing this. It’s amazing!<br class=""><br class="">Regards,<br class="">Andreas<br class=""><br class="">--&nbsp;<br class="">Andreas Mueller<br class="">IIT Software GmbH<br class=""><a href="https://urldefense.com/v3/__http://www.swiftmq.com__;!!GqivPVa7Brio!OTkOhMCgnkqvd7t-10OreduWGsgKGo6aeC4qf7UPdRTdVwZrbxidTID8-8RFRjHESTRQyg$">http://www.swiftmq.com</a><br class=""><br class=""><span id="cid:part2.0FBA3F8C.DA47BB78@oracle.com">&lt;swiftmq_logo_positiv.png&gt;</span><br class=""><br class=""><br class=""><br class=""><div class="">_______________________________________________</div><div class="">GraalVM-Users mailing list</div><br class="Apple-interchange-newline">GraalVM-Users@oss.oracle.com<br class="">https://oss.oracle.com/mailman/listinfo/graalvm-users<br class=""></blockquote>_______________________________________________<br class="">GraalVM-Users mailing list<br class="">GraalVM-Users@oss.oracle.com<br class="">https://oss.oracle.com/mailman/listinfo/graalvm-users<br class=""></blockquote><br class=""></div></body></html>