This is how Java works.
It has a JIT, which means that the first few times through a loop are very slow, until the JIT converts bytecode down to
machine instructions, after which things become reasonably fast.
In your test, the first few times through the first loop are going to very very slow, and then somewhere inside the
first loop, they will speed up.
If you want to test properly, you will need a warm-up phase before the main
test.
--
You received this message because you are subscribed to the Google Groups "H2
Database" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/h2-database.
For more options, visit https://groups.google.com/d/optout.