Skip to content

src,feat: add new packages and support to worker threads#3

Merged
RafaelGSS merged 12 commits intomainfrom
rafael/add-new-packages
Mar 6, 2024
Merged

src,feat: add new packages and support to worker threads#3
RafaelGSS merged 12 commits intomainfrom
rafael/add-new-packages

Conversation

@RafaelGSS
Copy link
Copy Markdown
Member

No description provided.

Copy link
Copy Markdown
Member

@santigimeno santigimeno left a comment

Choose a reason for hiding this comment

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

Looks good. What's the reasoning for running the benchmarks in workers, isolation?

Comment thread src/prettier-benchmark.js Outdated
Comment on lines +23 to +48
// {
// name: 'format (singleQuote=true semi=true tabs=true)',
// fn: () => {
// let v = undefined;
// for (const p of payloads) {
// v = prettier.format(
// p,
// { singleQuote: true, semi: true, tabs: true, parser: 'babel' },
// );
// }
// return v;
// },
// },
// {
// name: 'format (singleQuote=false semi=false tabs=false)',
// fn: () => {
// let v = undefined;
// for (const p of payloads) {
// v = prettier.format(
// p,
// { singleQuote: false, semi: false, tabs: false, parser: 'babel' }
// );
// }
// return v;
// },
// },
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.

Is this commented for a reason?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I think you commented on an outdated version somehow. It's now uncommented.

@RafaelGSS
Copy link
Copy Markdown
Member Author

RafaelGSS commented Mar 6, 2024

Looks good. What's the reasoning for running the benchmarks in workers, isolation?

Yes, guarantee a benchmark won't affect other benchmarks (inline cache and so on)

@RafaelGSS RafaelGSS merged commit e93f2d9 into main Mar 6, 2024
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