Skip to content

Commit 9030e93

Browse files
Trotttargos
authored andcommitted
benchmark: create napi benchmark directory
Move C++ benchmark useful for NAPI to its own directory. This will isolate the benchmark so it can be excluded from testing that applies to all other benchmarks but not this one. PR-URL: #21046 Reviewed-By: Anatoli Papirovski <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]>
1 parent 29593e2 commit 9030e93

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

β€ŽMakefile

+6-6
Original file line numberDiff line numberDiff line change
@@ -274,13 +274,13 @@ test-valgrind: all
274274
test-check-deopts: all
275275
$(PYTHON) tools/test.py $(PARALLEL_ARGS) --mode=$(BUILDTYPE_LOWER) --check-deopts parallel sequential
276276

277-
benchmark/misc/function_call/build/Release/binding.node: all \
278-
benchmark/misc/function_call/napi_binding.c \
279-
benchmark/misc/function_call/binding.cc \
280-
benchmark/misc/function_call/binding.gyp
277+
benchmark/napi/function_call/build/Release/binding.node: all \
278+
benchmark/napi/function_call/napi_binding.c \
279+
benchmark/napi/function_call/binding.cc \
280+
benchmark/napi/function_call/binding.gyp
281281
$(NODE) deps/npm/node_modules/node-gyp/bin/node-gyp rebuild \
282282
--python="$(PYTHON)" \
283-
--directory="$(shell pwd)/benchmark/misc/function_call" \
283+
--directory="$(shell pwd)/benchmark/napi/function_call" \
284284
--nodedir="$(shell pwd)"
285285

286286
# Implicitly depends on $(NODE_EXE). We don't depend on it explicitly because
@@ -1115,7 +1115,7 @@ LINT_CPP_EXCLUDE += $(wildcard test/addons-napi/??_*/*.cc test/addons-napi/??_*/
11151115
LINT_CPP_EXCLUDE += src/tracing/trace_event.h src/tracing/trace_event_common.h
11161116

11171117
LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \
1118-
benchmark/misc/function_call/binding.cc \
1118+
benchmark/napi/function_call/binding.cc \
11191119
src/*.c \
11201120
src/*.cc \
11211121
src/*.h \

0 commit comments

Comments
Β (0)