Skip to content

feat: allow running in Bun, add to CI - #599

Closed
zbjornson wants to merge 1 commit into
masterfrom
zb/bun
Closed

zbjornson wants to merge 1 commit into
masterfrom
zb/bun

Conversation

@zbjornson

@zbjornson zbjornson commented Nov 25, 2023 •

Copy link
Copy Markdown
Contributor

Adds feature testing to more default metrics so that Bun (and possibly Deno) work. The metrics are all called node_something_something /shrug.

I think this is all that's required, but our tests didn't catch any failures without these changes. Appreciate any beta-testing from the community.

For some reason, the tests are way slower in Bun (80 vs 5 seconds). idk how to use Bun's profiler with jest. evidently only on my WSL2 environment

oven-sh/bun#4708 will obviate these changes.

Fixes #570

Adds feature testing to more default metrics so that Bun (and possibly Deno) work.

Ref #570
Comment thread lib/metrics/gc.js
try {
// eslint-disable-next-line
perf_hooks = require('perf_hooks');
new perf_hooks.PerformanceObserver();

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

@LukasDeco

Copy link
Copy Markdown

@zbjornson are you looking to complete this PR? I am working on a project in Bun that would likely benefit from this.

@SimenB

SimenB commented Apr 16, 2024

Copy link
Copy Markdown
Contributor

@SimenB SimenB closed this Jun 22, 2024
@SimenB
SimenB deleted the zb/bun branch June 22, 2024 08:05
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.

Is it possible to use in Bun/Deno/other runtime?

3 participants