Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

updated bench scripts to bench against Nm #9

Merged
merged 1 commit into from
Apr 28, 2014
Merged

Conversation

kellyredding
Copy link
Member

This reworks the bench helpers to namespace them all under NmBench
and commonizes the non engine specific aspects (like the Logger).
Then using this common stuff, it adds scripts for benching against
Nm.

There are two benches for Nm: one where the source is built once
and then rendered against many times, and one where the source is
re-built each time. I did this to make sure I was comparing fairly
against RABL.

The results are stored in bench/results. Nm, even with rebuilding
its source unnecessarily each run, outperforms RABL in all cases.

@jcredding the diff is rugged due to moving everything under the NmBench module - sorry. The bench results are for rendering a 100-slide slideshow N number of times. Nm takes around 25% of the time RABL does to run.

This reworks the bench helpers to namespace them all under `NmBench`
and commonizes the non engine specific aspects (like the `Logger`).
Then using this common stuff, it adds scripts for benching against
Nm.

There are two benches for Nm: one where the source is built once
and then rendered against many times, and one where the source is
re-built each time.  I did this to make sure I was comparing fairly
against RABL.

The results are stored in `bench/results`.  Nm, even with rebuilding
its source unnecessarily each run, outperforms RABL in all cases.
@jcredding
Copy link
Member

@kellyredding - Cool, results are awesome. All the benchmarking logic looks good 💥

kellyredding added a commit that referenced this pull request Apr 28, 2014
updated bench scripts to bench against Nm
@kellyredding kellyredding merged commit 2d13f7d into master Apr 28, 2014
@kellyredding kellyredding deleted the kr-bench branch April 28, 2014 14:54
kellyredding added a commit that referenced this pull request Jun 4, 2014
first alpha release:

* setup benchmarking against RABL #1
* Readme with usage/notes details on template rendering #2
* basic template class with source file and locals #3
* api rename change: Template -> Render #4
* first pass at Template class with `node` and `map` implemmentations #5
* have templates evaluate given source files #6
* apply locals to template scope as reader methods #7
* Source object for rendering templates #8
* updated bench scripts to bench against Nm #9
* `render` and `partial` template and source methods #10

/cc @jcredding
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants