You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2026/07/11 13:25:58 UTC
[Bug 68596] Remaining overhead in javax.el.CompositeELResolver.convertToType
https://bz.apache.org/bugzilla/show_bug.cgi?id=68596
--- Comment #10 from Jeanclaude <vm...@gmail.com> ---
Comment on attachment 39573
--> https://bz.apache.org/bugzilla/attachment.cgi?id=39573
Support class for the speed test
>package com.engebretson;
>
>public abstract class BaseSpeedTest {
> private final int numTests;
> private final int numTestIterations;
>
> public BaseSpeedTest() {
> numTests = 20;
> numTestIterations = 100000;
> }
>
> public BaseSpeedTest(int numTests, int numTestIterations) {
> this.numTestIterations = numTestIterations;
> this.numTests = numTests;
> }
>
> protected void runTests() {
> // warmup
> for (int i = 0; i < numTestIterations; i++) {
> runOldTest();
> runNewTest();
> }
>
> for (int i = 0; i < numTests; i++) {
> System.gc();
> long startOld = System.currentTimeMillis();
> for (int j = 0; j < numTestIterations; j++) {
> runOldTest();
> }
> System.out.println("Done with old in " + (System.currentTimeMillis() - startOld));
> postOldTest();
> }
>
> for (int i = 0; i < numTests; i++) {
> System.gc();
> long startNew = System.currentTimeMillis();
> for (int j = 0; j < numTestIterations; j++) {
> runNewTest();
> }
> System.out.println("Done with new in " + (System.currentTimeMillis() - startNew));
> postNewTest();
> }
> }
>
> protected void postNewTest() {
> }
>
> protected void postOldTest() {
> }
>
> protected abstract void runOldTest();
>
> protected abstract void runNewTest();
>
>}
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org