Skip to content

Commit

Permalink
JEXL-414: added performance tests;
Browse files Browse the repository at this point in the history
- added another JexlCache implementation for testing;
- only kept one implementation as default;
  • Loading branch information
Henri Biestro committed Nov 23, 2023
1 parent b368907 commit 2255bb3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ public Integer call() {
for (int c = 0; c < CACHED; ++c) {
final int ctl = rnd.nextInt(SCRIPTS);
for (int r = 0; r < HIT; ++r) {
JexlScript script = jexl.createScript(Integer.toString(ctl) + " + 42 - 42");
JexlScript script = jexl.createScript(Integer.toString(ctl));
Object result = script.execute(null);
assert ((Number) result).intValue() == ctl;
count += 1;
Expand Down

0 comments on commit 2255bb3

Please sign in to comment.