angular / benchpress

158 stars 26 forks source link

looser coupling between running and reporting UIs #5

Open jeffbcross opened 10 years ago

jeffbcross commented 10 years ago

Currently, the build process compiles the markup from main.html with the benchpress harness html in template.html, outputting it as a single index.html in the build folder. Because the code under test and the reporting UI are all in the same context, certain constraints are placed on the reporting UI that make it difficult to make great. For example:

It would make the development experience of benchpress better if the benchmark code could be executed in an iframe with only the code under test + more limited version of the bp.js lib. This would require a more intelligent server component to run the benchmarks, which could manage messaging between the runner and the reporting app.

chirayuk commented 10 years ago

Jeff, I already set up an external server for this (for AngularDart) which is agnostic to the repo or the frontend.  Let's talk on using that one – or upgrading it to support these use cases.

jeffbcross commented 10 years ago

Can you point me to the source for this?

jeffbcross commented 9 years ago

Per some discussion with @tbosch yesterday, the reporting/control application should by default execute the benchmarks in an iframe, but should give the user the option of running each new run (not each sample) in its own new incognito window.