Please note that I provided this answer in 2011. Maybe it's out of date
My company is developing a database abstraction library ( jOOQ ) that supports both databases. Our integration tests cover many features, including calling stored procedures and functions, arrays, nested samples, etc. I believe that HSQLDB 2.1 slightly faster than H2 1.3 for small databases with regard to DML.
However, HSQLDB is significantly superior to H2 in DDL operations, as well as when starting / shutting down an instance even for a small database (due to the fact that H2 compiles the stored functions again with javac every time the database starts!) . It depends on how you store the stored functions. This seems to be a pretty jOOQ-specific βproblem,β see also Thomas Muller's comment.
On the other hand, I agree with the trashgod user, you should check the performance against a reasonable design and usage scenario for yourself.
Lukas Eder Apr 20 2018-11-11T00: 00Z
source share