Skip to content

Benchmark Babel transform - #79

Merged
nkzawa merged 5 commits into
masterfrom
benchmark
Jan 18, 2017
Merged

Benchmark Babel transform#79
nkzawa merged 5 commits into
masterfrom
benchmark

Conversation

@giuseppeg

Copy link
Copy Markdown
Contributor
Babel transform x 104 ops/sec ±1.32% (562 runs sampled)

Comment thread benchmark/babel.js Outdated

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

Copy link
Copy Markdown
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
Copy Markdown
Contributor 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
Copy Markdown
Contributor 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