GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Try using AWS Spot Instances for benchmark by liuxingbaoyu · Pull Request #18666 · babel/babel

Conversation

@liuxingbaoyu

@liuxingbaoyu liuxingbaoyu commented Nov 19, 2026

Copy link
Copy Markdown
Member
Q                       A
Fixed Issues? Fixes #1, Fixes #2
Patch: Bug Fix?
Major: Breaking Change?
Minor: New Feature?
Tests Added + Pass? Yes
Documentation PR Link
Any Dependency Changes?
Need backport? No
License MIT

Let’s see how long this takes. :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot] reacted with thumbs up emoji
All reactions
  • 👍 1 reaction
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-27T17:03:12.328659Z 0b40ce1 New commits
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liuxingbaoyu liuxingbaoyu changed the title Try using AWS Spot Instances Try using AWS Spot Instances for benchmark Nov 19, 2026
@babel-bot

babel-bot commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

Build successful! You can test your changes in the REPL here: https://babeljs.io/repl/build/63945

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pkg-pr-new

pkg-pr-new Bot commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown

Open in StackBlitz

commit: 0b40ce1

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@babel-bot

babel-bot commented Nov 19, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Collaborator

test262 results

As of 0b40ce1, this PR does not change any test262 results compared to main (tc39/test262@2e58f87).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

chatgpt-codex-connector[bot]
chatgpt-codex-connector Bot reviewed Nov 20, 2026
View reviewed changes

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: ba934ec0cb

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread benchmark/util.mjs Resolved

Uh oh!

There was an error while loading. Please reload this page.

@liuxingbaoyu
liuxingbaoyu force-pushed the test-aws-runner branch 2 times, most recently from 9ec430f to 622548c Compare November 25, 2026 15:15
JLHwung
JLHwung reviewed Nov 25, 2026
View reviewed changes
Comment thread .github/workflows/ci.yml
xargs -P "${{ matrix.parallel }}" -L 1 sh -c
'exec node --import @codspeed/tinybench-plugin --expose-gc --no-allocation-site-pretenuring "./benchmark/$0" --only-current --fixture="$1" ${{ matrix.args }}'
< benchmark-cases.txt
mode: walltime

@JLHwung JLHwung Nov 25, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I recall the longest benchmark is around 5min on GH runner, could we make 2 shards for the benchmark? Hopefully we can reduce the runtime to 5-6min per shard.

https://codspeed.io/docs/features/sharded-benchmarks

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@liuxingbaoyu liuxingbaoyu Nov 25, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

What do you think about increasing the minimum iteration time while decreasing the minimum number of iterations? That should improve accuracy for smaller cases and reduce execution time for larger cases.
This should also provide benefits when we run tests locally.
I’m concerned that adding more parallel machines might actually slow things down when handling multiple PRs, given the default quota limits on AWS. :)

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JLHwung JLHwung Nov 25, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

If quota is the concern, can we run half of tests on AWS and the other half on GH?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@liuxingbaoyu liuxingbaoyu Nov 25, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Currently, a maximum of 4 runners can run concurrently. Do you think that’s enough?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@JLHwung JLHwung Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

4 runners are probably fine in routine maintenance, but would probably be strained when we are approaching a release and merged a bunch of PR on both 8.x and 7.x. In that case it would be great to keep AWS benchmark runtime small so the cod speed job is not the bottleneck.

In current stacked PR settings, each enqueue will restack other branches and triggers concurrent benchmark jobs. If there are 5 stacks PR, the benchmark job will be throttled.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@JLHwung JLHwung Nov 25, 2026

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

At 40 iterations three cases take 60% of the time: node6 typescript-5.6.2.js (189 s), traverse typescript-5.6.2.js (72 s) and mjs-cjs ts-checker.mjs (53 s). Their error is already low (±0.4–2.2% at 40 samples, ±0.8–1.9% at 16), so I am fine with iterations: 16.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

liuxingbaoyu reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

@liuxingbaoyu liuxingbaoyu Nov 27, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I’ll see what the maximum amount is.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@liuxingbaoyu liuxingbaoyu Nov 27, 2026

Copy link
Copy Markdown
Member Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Its maximum concurrency is currently 8.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
liuxingbaoyu added 8 commits November 28, 2026 00:57
@liuxingbaoyu
test
ea93121
@liuxingbaoyu
yarn
fc559ad
@liuxingbaoyu
test
de29210
@liuxingbaoyu
test
d86e51a
@liuxingbaoyu
test
2635738
@liuxingbaoyu
Revert "test"
b6be23b
This reverts commit ba934ec.
@liuxingbaoyu
test
c6834ac
@liuxingbaoyu
review
0b40ce1
@liuxingbaoyu
liuxingbaoyu force-pushed the test-aws-runner branch from 0dc0091 to 0b40ce1 Compare November 27, 2026 16:59
@JLHwung

JLHwung commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

I noticed that the availability zone of the AWS runner is ap-south-2b, since GH runners typically reside in US, could we use us-west-2 or us-east-1 if the cost are the same, this should also reduce network latency between GH and AWS though in practical it doesn't matter so much for the CI.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liuxingbaoyu

liuxingbaoyu commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

The price in the US availability zone is 4-8 times that of ap-south-2b.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JLHwung

JLHwung commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

The price in the US availability zone is 4-8 times that of ap-south-2b.

I see, if you have not done so: could you test if c9g.large in us-east-2 is faster for the walltime benchmark? Currently it is almost as the same price as c8g.xlarge in ap-south-2, but the former instance offers better CPU.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liuxingbaoyu

liuxingbaoyu commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

There seems to be no difference, except that the time was shortened by 6 seconds because the former has 2 cores and 4G.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JLHwung

JLHwung commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

There seems to be no difference, except that the time was shortened by 6 seconds because the former has 2 cores and 4G.

Did you mean c8g.xlarge is faster than c9g.large by 6 seconds? That seems okay for me. If there are enough credit, we can consider switch to c9g.xlarge.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liuxingbaoyu

liuxingbaoyu commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

c9g.large is 6 seconds faster than c8g.xlarge, an improvement of 1.5%. And the memory size has been reduced from 8GB to 4GB.
I’d rather have 8GB of RAM than a 1.5% speed boost. :)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JLHwung

JLHwung commented Nov 28, 2026

Copy link
Copy Markdown
Contributor

c9g.large is 6 seconds faster than c8g.xlarge, an improvement of 1.5%. And the memory size has been reduced from 8GB to 4GB. I’d rather have 8GB of RAM than a 1.5% speed boost. :)

Well V8 gc executes on the other cores so 2-core may be a bit stressed here, a fair comparison might be to compare c9g.xlarge with c8g.xlarge. However, if c9g.large is already faster, why do we use c8g.xlarge at all? I know it has more memory and currently slightly cheaper than the c9g.large one, but our goal should be to provide feedback to the PR contributor in the fastest manner. We can try to request more credits from AWS, or we can just use the current GH runner.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@liuxingbaoyu

liuxingbaoyu commented Nov 28, 2026

Copy link
Copy Markdown
Member Author

I tested c8g.xlarge, and it reduced the time by 13% while the cost became 2.7x. :)
Six minutes seems acceptable, and we can consider speeding it up if we have more tests in the future.

We can try to request more credits from AWS, or we can just use the current GH runner.

I haven’t applied for credits yet. I'm only using my personal account.
GitHub Runners are definitely more convenient, but they appear to be over 50 times more expensive than AWS.🤦‍♂️

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@JLHwung JLHwung JLHwung left review comments
@chatgpt-codex-connector chatgpt-codex-connector[bot] chatgpt-codex-connector[bot] left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@liuxingbaoyu @babel-bot @JLHwung
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.