Add JMH data access benchmark app

This commit is contained in:
Mikhail Yevchenko
2026-04-05 14:31:17 +00:00
commit f4ed92b415
15 changed files with 533 additions and 0 deletions
@@ -0,0 +1,14 @@
package com.benchmark.fixtures;
public class FixtureFactory {
public static DataFixtures create(String type) {
return switch (type) {
case "gson" -> new GsonFileFixture();
case "kryo" -> new KryoFileFixture();
case "sqlite-jdbc" -> new SqliteJdbcFixture();
case "sqlite-ormlite" -> new SqliteOrmLiteFixture();
default -> throw new IllegalArgumentException("Unknown fixture type: " + type);
};
}
}