Commit f716dbff authored by ebruneton's avatar ebruneton
Browse files

added perf test

parent 7ca1b9eb
......@@ -119,6 +119,20 @@ public abstract class ALLPerfTest extends ClassLoader {
System.out.println("Time to deserialize and reserialize "
+ classes.size() + " classes (with copyPool) = " + t + " ms");
}
for (int i = 0; i < 10; ++i) {
long t = System.currentTimeMillis();
for (int j = 0; j < classes.size(); ++j) {
byte[] b = (byte[]) classes.get(j);
ClassReader cr = new ClassReader(b);
ClassWriter cw = new ClassWriter(true);
cr.accept(cw, false);
cw.toByteArray();
}
t = System.currentTimeMillis() - t;
System.out.println("Time to deserialize and reserialize "
+ classes.size() + " classes (with computeMaxs) = " + t + " ms");
}
for (int i = 0; i < 10; ++i) {
long t = System.currentTimeMillis();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment