aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKenny Yuan <kaining.yuan@intel.com>2018-06-27 12:42:18 +0800
committerGabriel Schulhof <gabriel.schulhof@intel.com>2018-07-05 21:16:55 -0400
commit3314b3a2f5d9abcf1deee565839f779d26c8672d (patch)
tree8c65efceb9393bd455717ede9186ea7af6595472 /Makefile
parent0a78f7d622534344888013f93de5d9fed6305e6b (diff)
downloadandroid-node-v8-3314b3a2f5d9abcf1deee565839f779d26c8672d.tar.gz
android-node-v8-3314b3a2f5d9abcf1deee565839f779d26c8672d.tar.bz2
android-node-v8-3314b3a2f5d9abcf1deee565839f779d26c8672d.zip
benchmark: add n-api function args benchmark
This benchmark suite is added to measure the performance of n-api function call with various type/number of arguments. The cases in this suite are carefully selected to efficiently show the performance trend. PR-URL: https://github.com/nodejs/node/pull/21555 Reviewed-By: Gabriel Schulhof <gabriel.schulhof@intel.com> Reviewed-By: Kyle Farnung <kfarnung@microsoft.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f407066cf5..634eec5151 100644
--- a/Makefile
+++ b/Makefile
@@ -305,6 +305,15 @@ benchmark/napi/function_call/build/Release/binding.node: all \
--directory="$(shell pwd)/benchmark/napi/function_call" \
--nodedir="$(shell pwd)"
+benchmark/napi/function_args/build/Release/binding.node: all \
+ benchmark/napi/function_args/napi_binding.c \
+ benchmark/napi/function_args/binding.cc \
+ benchmark/napi/function_args/binding.gyp
+ $(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
+ --python="$(PYTHON)" \
+ --directory="$(shell pwd)/benchmark/napi/function_args" \
+ --nodedir="$(shell pwd)"
+
# Implicitly depends on $(NODE_EXE). We don't depend on it explicitly because
# it always triggers a rebuild due to it being a .PHONY rule. See the comment
# near the build-addons rule for more background.