Skip to content

Add benchmarks#623

Closed
gabrielschulhof wants to merge 3 commits intonodejs:masterfrom
gabrielschulhof:add-benchmarks
Closed

Add benchmarks#623
gabrielschulhof wants to merge 3 commits intonodejs:masterfrom
gabrielschulhof:add-benchmarks

Conversation

@gabrielschulhof
Copy link
Copy Markdown
Contributor

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

@gabrielschulhof
Copy link
Copy Markdown
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
Copy Markdown
Contributor Author

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

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

Copy link
Copy Markdown
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
Copy Markdown
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.

Comment thread benchmark/README.md
@gabrielschulhof
Copy link
Copy Markdown
Contributor Author

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

@legendecas
Copy link
Copy Markdown
Member

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

Copy link
Copy Markdown
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
Copy link
Copy Markdown
Contributor Author

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
Copy Markdown
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