Did some benchmarking of MustacheBuilder and MustacheCompiler using
BenchmarkTest in the distribution. Also, there is a new JDK 7 branch
that uses MethodHandles rather than Reflection to call your backing
code. Here are the results:
What we see here is that Builder > Compiler, Handles > Reflection and
JDK 7 > JDK 6. Also, the compile time for Builder is around 10ms and
the compile time for Compiler is around 800ms. These tests were all
run on a 6-core MacPro using the latest JDK 6 from Apple and the
latest JDK 7 compiled from OpenJDK. With this result for JDK 7 I will
likely figure out a way to merge that change into the mainline and
still allow it to work with JDK 6.
This functionality is now integrated into the mainline. It detects
whether method handles are available at runtime and uses them if they
are available.
Sam
On Jul 22, 11:10 am, Sam <spull...@gmail.com> wrote:
> Did some benchmarking of MustacheBuilder and MustacheCompiler using
> BenchmarkTest in the distribution. Also, there is a new JDK 7 branch
> that uses MethodHandles rather than Reflection to call your backing
> code. Here are the results:
> What we see here is that Builder > Compiler, Handles > Reflection and
> JDK 7 > JDK 6. Also, the compile time for Builder is around 10ms and
> the compile time for Compiler is around 800ms. These tests were all
> run on a 6-core MacPro using the latest JDK 6 from Apple and the
> latest JDK 7 compiled from OpenJDK. With this result for JDK 7 I will
> likely figure out a way to merge that change into the mainline and
> still allow it to work with JDK 6.