Nailgun - optimize Java programs running from the command line
Closed this issue · 0 comments
denji commented
Nailgun is a client, protocol, and server for running Java programs from the command line without incurring the JVM startup overhead.
$ time java com.martiansoftware.nailgun.examples.HelloWorld Hello, world!
real 0m0.132s
user 0m0.080s
sys 0m0.010s
$ git clone https://github.com/martylamb/nailgun.git
$ cd nailgun
$ sed -e 's#<source>1.4</source>#<source>1.8</source>#g' pom.xml >pom.xml
$ sed -e 's#<target>1.4</target>#<target>1.8</target>#g' pom.xml >pom.xml
# Maven build
$ mvn clean
$ mvn compile
$ make
$ time ./ng com.martiansoftware.nailgun.examples.HelloWorld Hello, world!
real 0m0.004s
user 0m0.000s
sys 0m0.000s