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

Add benchmarks #623

Closed
wants to merge 3 commits into from
Closed

Conversation

gabrielschulhof
Copy link
Contributor

This adds a benchmarking framework and two benchmarks: one for function calls and one for property descriptor getter/setter calls.

@gabrielschulhof
Copy link
Contributor Author

I'm also pretty sure it factors out the settings needed for turning on/off exceptions in an addon's binding.gyp. The except.gypi and noexcept.gypi files might be useful in and of themselves. If they are, we should add lines to index.js which gives their path for inclusion in addons.

@gabrielschulhof gabrielschulhof force-pushed the add-benchmarks branch 2 times, most recently from f03a98c to e92ef1a Compare December 6, 2019 01:34
@gabrielschulhof
Copy link
Contributor Author

Alas, gyp does not support variable resolution for 'includes':

...
'includes': [ '<(variable_will_not_work_here)']
...

Copy link
Member

@mhdawson mhdawson left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Member

@NickNaso NickNaso left a comment

Choose a reason for hiding this comment

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

LGTM just one comment.

benchmark/README.md Show resolved Hide resolved
@gabrielschulhof
Copy link
Contributor Author

@NickNaso I linked benchmark/README.md from the main README.md.

@legendecas
Copy link
Member

Built products in benchmark/build shall be ignored in .gitignore.

Copy link
Member

@NickNaso NickNaso left a comment

Choose a reason for hiding this comment

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

LGTM

gabrielschulhof pushed a commit that referenced this pull request Dec 14, 2019
Adds the framework for writing benchmarks and two basic benchmarks.

PR-URL: #623
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
@gabrielschulhof
Copy link
Contributor Author

Landed in 6a06463.

@gabrielschulhof gabrielschulhof deleted the add-benchmarks branch December 17, 2019 01:36
kevindavies8 added a commit to kevindavies8/node-addon-api-Develop that referenced this pull request Aug 24, 2022
Adds the framework for writing benchmarks and two basic benchmarks.

PR-URL: nodejs/node-addon-api#623
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Marlyfleitas added a commit to Marlyfleitas/node-api-addon-Development that referenced this pull request Aug 26, 2022
Adds the framework for writing benchmarks and two basic benchmarks.

PR-URL: nodejs/node-addon-api#623
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
wroy7860 added a commit to wroy7860/addon-api-benchmark-node that referenced this pull request Sep 19, 2022
Adds the framework for writing benchmarks and two basic benchmarks.

PR-URL: nodejs/node-addon-api#623
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
johnfrench3 pushed a commit to johnfrench3/node-addon-api-git that referenced this pull request Aug 11, 2023
Adds the framework for writing benchmarks and two basic benchmarks.

PR-URL: nodejs/node-addon-api#623
Reviewed-By: Nicola Del Gobbo <nicoladelgobbo@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
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.

4 participants