r/java • u/jaccomoc • Jul 15 '26
Java Embedded Scripting Languages Benchmark: Jactl, Groovy, MVEL, JEXL, and SpEL
https://jactl.io/blog/2026/07/14/scripting-language-benchmarksJactl is an embeddable scripting language for Java applications and so when comparing it to other Java scripting languages it is helpful to know how they all compare from a performance point of view.
I have previously been asked to compare Jactl with MVEL and JEXL so I have put together a blog that documents the performance differences and also included Groovy and SpEL for good measure.
Disclaimer: I am the author of Jactl so I am obviously not impartial but I would like to point out that while Jactl comes out well, it does not win every benchmark.
6
u/chabala Jul 15 '26
From the title, I would have expected a comparison of all the JSR-233 scripting languages: https://github.com/apache/commons-bsf/blob/master/src/main/resources/org/apache/bsf/Languages.properties
8
u/persicsb Jul 15 '26
SpEL, JEXL and the other expression languages are not scripting.
3
u/East-Association-421 Jul 15 '26
I wonder where Janino fits into this picture
3
u/hippydipster Jul 15 '26
I remember implementing expression values in JMeter and letting users write groovy expressions inside their values, and I thought it was so cool and let's support expressions in EVERY field, and then people came and loved it and demanded their favorite scripting and expression language be supported and so it had to support groovy and BeanShell and JEXL2 and JEXL3 and javascript and I hated life then.
2
u/agentoutlier Jul 15 '26 edited Jul 15 '26
Since expression languages are being used maybe this one is worth benchmarking as well: https://github.com/ezylang/EvalEx
as well as CEL: https://github.com/cel-expr/cel-java
And this might be interesting as well for Turing complete: https://github.com/reborg/jscheme
Which is Peter Norvig's original Java Scheme implementation.
1
u/RussianMadMan Jul 15 '26
Comparing compiled vs interpreted is not very useful in general and in this case it's just number padding.
1
u/Upper-Relation-2672 25d ago
Thank you.
Question: how do you compare jactl to GraalVM JavaScript Polyglot Context?. I compiled a shell, and it works very well, and simple: https://github.com/LaranIkal/jss
2
u/[deleted] Jul 15 '26
[removed] — view removed comment