Skip to content

Add benchmarking setup #25

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

Open
wants to merge 2 commits into
base: release/0.0.4
Choose a base branch
from
Open

Add benchmarking setup #25

wants to merge 2 commits into from

Conversation

benStre
Copy link
Member

@benStre benStre commented Apr 14, 2025

No description provided.

@Copilot Copilot AI review requested due to automatic review settings April 14, 2025 13:37
@benStre benStre changed the base branch from main to release/0.0.4 April 14, 2025 13:38
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 101 out of 108 changed files in this pull request and generated 4 comments.

Files not reviewed (7)
  • datex-language/datex.tmLanguage.json: Language not supported
  • datex-language/datex.tmbundle/info.plist: Language not supported
  • datex-language/example.dx: Language not supported
  • docs/diagrams/d2/architecture-overview.d2: Language not supported
  • docs/diagrams/d2/com-hub-process.d2: Language not supported
  • docs/diagrams/d2/com-hub-structure.d2: Language not supported
  • docs/diagrams/d2/endpoint-structure.d2: Language not supported

Comment on lines 20 to 23
const { code } = await process.output();
if (code !== 0) {
const { stderr } = await process.output();
console.error(`Error rendering ${inputFile}: ${new TextDecoder().decode(stderr)}`);
Copy link
Preview

Copilot AI Apr 14, 2025

Choose a reason for hiding this comment

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

process.output() is called twice, which may re-run the command and produce inconsistent output. Consider storing the result of process.output() in a variable and reusing it for error handling.

Suggested change
const { code } = await process.output();
if (code !== 0) {
const { stderr } = await process.output();
console.error(`Error rendering ${inputFile}: ${new TextDecoder().decode(stderr)}`);
const output = await process.output();
if (output.code !== 0) {
console.error(`Error rendering ${inputFile}: ${new TextDecoder().decode(output.stderr)}`);

Copilot uses AI. Check for mistakes.


## Contributing

We welcome every contribution!<br>
Please take a look at the [development guidelines](./DEVELOP.md) and the unyt.org [contribution guidlines](https://github.com/unyt-org/.github/blob/main/CONTRIBUTING.md).
Please take a look at the [development guidelines](./DEVELOP.md) and the
unyt.org [contribution guidlines](https://github.com/unyt-org/.github/blob/main/CONTRIBUTING.md).
Copy link
Preview

Copilot AI Apr 14, 2025

Choose a reason for hiding this comment

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

Typo detected: 'contribution guidlines' should be 'contribution guidelines'.

Suggested change
unyt.org [contribution guidlines](https://github.com/unyt-org/.github/blob/main/CONTRIBUTING.md).
unyt.org [contribution guidelines](https://github.com/unyt-org/.github/blob/main/CONTRIBUTING.md).

Copilot uses AI. Check for mistakes.

] # default to nostd
native_websocket = ["websocket"] # use native websocket
native_tcp = [] # use native tcp
native_rand = ["rand"] # use native websocket
Copy link
Preview

Copilot AI Apr 14, 2025

Choose a reason for hiding this comment

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

Comment mismatch: 'use native websocket' should be updated to 'use native rand'.

Suggested change
native_rand = ["rand"] # use native websocket
native_rand = ["rand"] # use native rand

Copilot uses AI. Check for mistakes.

native_websocket = ["websocket"] # use native websocket
native_tcp = [] # use native tcp
native_rand = ["rand"] # use native websocket
native_uuid = ["uuid"] # use native websocket
Copy link
Preview

Copilot AI Apr 14, 2025

Choose a reason for hiding this comment

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

Comment mismatch: 'use native websocket' should be updated to 'use native uuid'.

Suggested change
native_uuid = ["uuid"] # use native websocket
native_uuid = ["uuid"] # use native uuid

Copilot uses AI. Check for mistakes.

Copy link

github-actions bot commented Apr 14, 2025

🐰 Bencher Report

Branchfeat/benchmarking
Testbedubuntu-latest
Click to view all benchmark results
BenchmarkLatencymilliseconds (ms)
runtime init📈 view plot
🚷 view threshold
1.05 ms
🐰 View full continuous benchmarking report in Bencher

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.

1 participant