Skip to content

src: add fast api for Histogram - #51296

Merged
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
jasnell:histogram-fast-api
Dec 29, 2023
Merged

src: add fast api for Histogram#51296
nodejs-github-bot merged 1 commit into
nodejs:mainfrom
jasnell:histogram-fast-api

Conversation

@jasnell

Copy link
Copy Markdown
Member

No description provided.

@jasnell
jasnell requested a review from anonrigDecember 27, 2023 16:31
@nodejs-github-botnodejs-github-bot added c++ Issues and PRs that require attention from people who are familiar with C++. needs-ci PRs that need a full CI run. labels Dec 27, 2023
@nodejs-github-bot

nodejs-github-bot commented Dec 27, 2023

Copy link
Copy Markdown
Collaborator

@jasnelljasnell added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. and removed needs-ci PRs that need a full CI run. labels Dec 27, 2023
Comment on lines +18 to +25
histogram.max;
histogram.mean;
/* eslint-enable no-unused-expressions */
}
bench.end(n);

// Avoid V8 deadcode (elimination)
assert.ok(histogram);

@H4adH4adDec 27, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this case, I think you should have two variables to store the max/mean and then assert those variables to avoid deadcode elimination.

@nodejs-github-botnodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Dec 29, 2023
@nodejs-github-bot
nodejs-github-bot merged commit 1a49193 into nodejs:mainDec 29, 2023
@nodejs-github-bot

Copy link
Copy Markdown
Collaborator

Landed in 1a49193

RafaelGSS pushed a commit that referenced this pull request Jan 2, 2024
PR-URL: #51296
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
@RafaelGSSRafaelGSS mentioned this pull request Jan 2, 2024
richardlau pushed a commit that referenced this pull request Mar 25, 2024
PR-URL: #51296
Reviewed-By: Yagiz Nizipli <yagiz.nizipli@sentry.io>
Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br>
Reviewed-By: Mohammed Keyvanzadeh <mohammadkeyvanzade94@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Minwoo Jung <nodecorelab@gmail.com>
@richardlaurichardlau mentioned this pull request Mar 25, 2024
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

author readyPRs that have at least one approval, no pending requests for changes, and a CI started.c++Issues and PRs that require attention from people who are familiar with C++.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants

@jasnell@nodejs-github-bot@benjamingr@anonrig@JungMinu@H4ad@VoltrexKeyva