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

Benchmark Babel transform #79

Merged
merged 5 commits into from
Jan 18, 2017
Merged

Benchmark Babel transform #79

merged 5 commits into from
Jan 18, 2017

Conversation

giuseppeg
Copy link
Collaborator

Babel transform x 104 ops/sec ±1.32% (562 runs sampled)


const transform = (file, opts = {}) => (
new Promise((resolve, reject) => {
transformFile(path.resolve(__dirname, file), {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't we avoid the benchmark doing I/O?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah but I am not sure if benchmark supports async setup bestiejs/benchmark.js#174

I can read the file synchronously before exporting the benchmark wdyt?

@giuseppeg
Copy link
Collaborator Author

155 ops/sec ±1.39% (573 runs sampled)

@nkzawa nkzawa merged commit ca700fa into master Jan 18, 2017
@nkzawa nkzawa deleted the benchmark branch January 18, 2017 10:50
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.

3 participants