feat(benchmarks): Add basic dart transformer benchmarks.

Adds simple benchmarks for various transformation phases, as well as hello_world.
Does not integrate these into any benchmark frameworks yet.
This commit is contained in:
Jacob MacDonald
2015-03-19 15:47:10 -07:00
parent 457c15cd6c
commit 1864f60afb
9 changed files with 408 additions and 1 deletions
@@ -0,0 +1,24 @@
library angular2.test.benchmark.transform;
import 'package:guinness/guinness.dart';
import 'package:unittest/vm_config.dart';
import 'bind_generator/simple.dart' as bindGenerator;
import 'directive_linker/simple.dart' as directiveLinker;
import 'directive_processor/simple.dart' as directiveProcessor;
import 'integration/hello_world.dart' as helloWorld;
import 'reflection_remover/simple.dart' as reflectionRemover;
import 'template_compiler/inline.dart' as inlineTemplateCompiler;
import 'template_compiler/url.dart' as urlTemplateCompiler;
main() {
useVMConfiguration();
describe('Bind Generator Benchmark', bindGenerator.allTests);
describe('Directive Linker Benchmark', directiveLinker.allTests);
describe('Directive Processor Benchmark', directiveProcessor.allTests);
describe('Hello World Transformer Benchmark', helloWorld.allTests);
describe('Reflection Remover Benchmark', reflectionRemover.allTests);
describe('Inline Template Compiler Benchmark',
inlineTemplateCompiler.allTests);
describe('Url Template Compiler Benchmark', urlTemplateCompiler.allTests);
}