use of org.terasology.reflection.reflect.ByteCodeReflectFactory in project Terasology by MovingBlocks.
the class ReflectFactoryBenchmark method main.
public static void main(String[] args) {
final List<Benchmark> benchmarks = Lists.newArrayList();
benchmarks.add(new FieldAccessBenchmark(new ReflectionReflectFactory()));
benchmarks.add(new FieldAccessBenchmark(new ByteCodeReflectFactory()));
benchmarks.add(new GetterSetterAccessBenchmark(new ReflectionReflectFactory()));
benchmarks.add(new GetterSetterAccessBenchmark(new ByteCodeReflectFactory()));
benchmarks.add(new ConstructionBenchmark(new ReflectionReflectFactory()));
benchmarks.add(new ConstructionBenchmark(new ByteCodeReflectFactory()));
Benchmarks.execute(benchmarks, new PrintToConsoleCallback());
}
Aggregations