Skip to content

Initial benchmarks #1

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

Merged
merged 6 commits into from
Dec 7, 2023
Merged

Initial benchmarks #1

merged 6 commits into from
Dec 7, 2023

Conversation

littledivy
Copy link
Contributor

No description provided.

Copy link

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Thanks for the PR, Divy!

Execute(ctx, "octane/zlib-data.js", JS_EVAL_TYPE_GLOBAL);
Execute(ctx, "octane/typescript.js", JS_EVAL_TYPE_GLOBAL);
Execute(ctx, "octane/typescript-input.js", JS_EVAL_TYPE_GLOBAL);
Execute(ctx, "octane/typescript-compiler.js", JS_EVAL_TYPE_GLOBAL);

Choose a reason for hiding this comment

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

It would maybe run these in their own contexts because then there's no risk of one benchmark clobbering another (because they all pollute the global scope like mad.)

On the other hand, V8 didn't do that either so 🤷

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Each benchmark registers itself to the BenchmarkSuite global so it needs to be in the same context.

Copy link
Contributor

@saghul saghul left a comment

Choose a reason for hiding this comment

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

Left some comments. Generally LGTM we could iterate on it. I suppose we'll want to add JSON output maybe, so we could store the results and graph them over time / release?

@littledivy
Copy link
Contributor Author

little bump, anything else left for this PR?

Copy link

@bnoordhuis bnoordhuis left a comment

Choose a reason for hiding this comment

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

Sorry for the delay, Divy. LGTM and thanks!

@bnoordhuis bnoordhuis merged commit dcdc2b1 into quickjs-ng:main Dec 7, 2023
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