Skip to content

feat: add initial framework template#1

Merged
RafaelGSS merged 2 commits intomainfrom
rafael/initial-release
Feb 28, 2024
Merged

feat: add initial framework template#1
RafaelGSS merged 2 commits intomainfrom
rafael/initial-release

Conversation

@RafaelGSS
Copy link
Copy Markdown
Member

This PR adds the initial framework template. The idea is to open other PRs including benchmarks of other modules. Once we have a reasonable amount of reports, we'll store it in a JSON file to be displayed in some UI.

Currently, two types of benchmark will be supported:

  1. HTTP - autocannon
  2. ops/sec benchmark

For the former, I'm going to use benchmark.js for now, but my plan is to work on https://github.com/RafaelGSS/bench-node as part of the work of migrating it into Node.js core.

The repository is designed to be used as a source of comparison across releases. The package versions will be fixed and upgraded every 6 months to prevent misleading comparisons due to changes.

Comment thread index.js
let server = undefined;
if (settings.type === 'http') {
server = spawnServer(settings);
// TODO: replace this workaround to use IPC to know when server is up
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.

Copy link
Copy Markdown
Member

@edsadr edsadr left a comment

Choose a reason for hiding this comment

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

just few nits there to get us a good start and maybe add some more to the README

Comment thread .gitignore
Comment thread .npmrc
@RafaelGSS RafaelGSS requested a review from edsadr February 28, 2024 14:40
@RafaelGSS RafaelGSS merged commit 4e63366 into main Feb 28, 2024
@edsadr edsadr deleted the rafael/initial-release branch March 4, 2024 17:42
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