Skip to content

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.

4 participants