Skip to content

Conversation

@mertcanaltin
Copy link
Member

@mertcanaltin mertcanaltin commented Dec 27, 2025

added benchmark code for isNativeError function

for: #60468 (comment)

➜  node git:(mert/create-logger-api/node-core) ✗ ./node benchmark/util/is-native-error.js
util/is-native-error.js n=1000000 version="native" argument="true": 400,226,688.3963077
util/is-native-error.js n=1000000 version="js" argument="true": 439,037,839.79333615
util/is-native-error.js n=1000000 version="native" argument="falsePrimitive": 455,814,483.5052134
util/is-native-error.js n=1000000 version="js" argument="falsePrimitive": 437,532,979.04829574
util/is-native-error.js n=1000000 version="native" argument="falseObject": 393,739,541.2934344
util/is-native-error.js n=1000000 version="js" argument="falseObject": 421,001,047.8716082

@nodejs-github-bot
Copy link
Collaborator

Review requested:

  • @nodejs/performance

@nodejs-github-bot nodejs-github-bot added benchmark Issues and PRs related to the benchmark subsystem. util Issues and PRs related to the built-in util module. labels Dec 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

benchmark Issues and PRs related to the benchmark subsystem. util Issues and PRs related to the built-in util module.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants