Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Speed up javascript with eval #65

Closed
wants to merge 2 commits into from

Conversation

serpent7776
Copy link

This change speeds up the javascript loops when run in bun on my machine.

Before the change

Node = 2.41users
0inputs+0outputss
Node = 2.39users
0inputs+0outputss
Node = 2.42users
0inputs+0outputss

Bun = 2.09users
0inputs+0outputss
Bun = 2.10users
0inputs+0outputss
Bun = 2.08users
0inputs+0outputss

After the change

Node = 2.39users
0inputs+0outputss
Node = 2.42users
0inputs+0outputss
Node = 2.39users
0inputs+0outputss

Bun = 1.84users
0inputs+0outputss
Bun = 1.84users
0inputs+0outputss
Bun = 1.87users
0inputs+0outputss

@bddicken
Copy link
Owner

Thanks for your contribution. It's quite interesting that this actual speeds things up for Bun. However, this is more of a hack than it is an actual improvement based on language features, so I will not be incorporating this into the main benchmark at this time.

@bddicken bddicken closed this Nov 29, 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.

2 participants