Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Jamie Mansfield
asm
Commits
f716dbff
Commit
f716dbff
authored
Apr 07, 2006
by
ebruneton
Browse files
added perf test
parent
7ca1b9eb
Changes
1
Hide whitespace changes
Inline
Side-by-side
test/perf/org/objectweb/asm/ALLPerfTest.java
View file @
f716dbff
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment