stats.addMetric(new CharacterCountMetric('_'));
stats.addProduct(new NoReplacer());
stats.addTarget(new FieldReflection());
stats.addTarget(new Field_Reflection());
stats.addTarget(new Field$Reflection());
stats.run(new MultiReporter(reporters) {
public void endBenchmark() {
// do nothing
}
});
Harness harness = new Harness();
harness.addMetric(new SerializationSpeedMetric(100));
harness.addMetric(new DeserializationSpeedMetric(100, false));
harness.addProduct(new CombinedLookupReplacer(0));
// harness.addProduct(new CombinedLookupReplacer(32));
harness.addProduct(new CombinedLookupAppender(0));
// harness.addProduct(new CombinedLookupAppender(32));
harness.addProduct(new SeparateLookupReplacer(0));
// harness.addProduct(new SeparateLookupReplacer(32));
harness.addProduct(new IterativeReplacer(0));
// harness.addProduct(new IterativeReplacer(32));
harness.addProduct(new IterativeAppender(0));
// harness.addProduct(new IterativeAppender(32));
harness.addProduct(new IterativeAppenderWithShortcut());
harness.addProduct(new CachingIterativeAppenderWithShortcut());
harness.addTarget(new FieldReflection());
harness.addTarget(new Field_Reflection());
harness.addTarget(new Field$Reflection());
harness.run(new MultiReporter(reporters) {
public void startBenchmark() {
// do nothing
}