https://github.com/angular/benchmark_generator
Given a YAML application descriptor, generates a full application for a number of web frameworks, then let's you benchmark it
https://github.com/angular/benchmark_generator
Last synced: 8 months ago
JSON representation
Given a YAML application descriptor, generates a full application for a number of web frameworks, then let's you benchmark it
- Host: GitHub
- URL: https://github.com/angular/benchmark_generator
- Owner: angular
- License: apache-2.0
- Archived: true
- Created: 2015-08-06T20:54:01.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-10-10T01:21:47.000Z (over 10 years ago)
- Last Synced: 2024-09-26T11:03:56.558Z (almost 2 years ago)
- Language: Dart
- Size: 191 KB
- Stars: 9
- Watchers: 8
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Benchmark generator
Given a YAML application descriptor, generates a full application
for a number of web frameworks, then let's you benchmark it.
Use it like this:
- `pub global activate benchmark_generator`
- `bench_gen -i /path/to/descriptor.yaml -o /path/to/output/dir -f ng2-dart`
## Creating application descriptors
An application descriptor is a YAML file that describes the structure of an
application in a framework-independent way. The format is described in the
[example](https://github.com/angular/benchmark_generator/blob/master/example/small.yaml).
If you need to describe an application structure very precisely and you
application isn't very big (dozens of components) you can write a descriptor by
hand.
If you would like to emulate a very large application (hundreds of components)
you might want to consider generating it. For example
[gen_scaffold_spec.dart](https://github.com/angular/benchmark_generator/blob/master/bin/gen_scaffold_spec.dart)
generates a typical mobile web app (a shell containing a sidebar with tabs,
each tab corresponds to a screen). For applications of different structures you
can write your own generator.