Extremely slow startup performance

Bernd Eckenfels ecki at zusammenkunft.net
Wed Jul 2 21:24:41 UTC 2014


I am curious, is this time with or without starting the JVM? (as V8 is
a native engine which especially for startup time is unbeatable.

Gruss
Bernd

Am Wed, 2 Jul
2014 11:21:10 +0200 schrieb Sia Lang <silverlanguage at gmail.com>:

> I'm trying to use Nashorn as a plugin framework.
> 
> However, code like:
> 
>     engine.eval(new BufferedReader(new
> FileReader("coffee-script.js")));
> 
> easily takes 10-15 seconds. V8 uses a few milliseconds (when using
> jav8 as scriptengine)
> 
> In my opinion, Nashorn is so slow on startup it's useless (I have
> tons of plugin scripts, which accumulates to 2-3 minutes of
> application startup time due to nashorn - with v8 i'm subsecond!)
> 
> What's going on? Anything I can do to fix this?
> 
> Lang



More information about the nashorn-dev mailing list