Skip to content

feat: add node addon support#40

Merged
richerfu merged 14 commits into
mainfrom
feat-support-node-addon
May 26, 2026
Merged

feat: add node addon support#40
richerfu merged 14 commits into
mainfrom
feat-support-node-addon

Conversation

@richerfu

Copy link
Copy Markdown
Contributor

No description provided.

@github-actions

github-actions Bot commented May 25, 2026

Copy link
Copy Markdown

zig-napi ArkVM benchmark

  • Generated: 2026-05-26T09:18:15Z
  • Status: ZIG_NAPI_BENCHMARK_RESULT status=ok
module api content iterations native C N-API avg (us) zig-napi avg (us) diff (us) ratio
global function void(*)() 100000 0.095 0.096 0.001 1.009x
primitive i32(i32, i32) 100000 0.125 0.121 -0.004 0.969x
primitive bool(bool) 100000 0.109 0.11 0.001 1.014x
string len(string) 100000 0.143 0.147 0.004 1.026x
object read properties 100000 0.288 0.289 0.001 1.003x
array sum(number[]) 100000 0.639 0.66 0.021 1.032x
function call callback 100000 0.242 0.282 0.04 1.164x
class constructor 20000 0.954 5.03 4.076 5.272x
class getter 100000 0.208 0.207 -0.001 0.996x
class setter 100000 0.406 0.399 -0.008 0.981x
class method 100000 0.222 0.223 0 1.002x
ArrayBuffer constructor 20000 0.272 0.34 0.067 1.247x
ArrayBuffer byteLength 100000 0.144 0.148 0.004 1.025x
Buffer constructor 20000 0.904 0.732 -0.172 0.81x
Buffer length 100000 0.146 0.155 0.009 1.065x
TypedArray Uint8Array constructor 20000 0.687 0.86 0.172 1.25x
TypedArray Uint8Array sum 100000 0.165 0.215 0.05 1.303x
DataView constructor 20000 0.38 0.391 0.011 1.028x
DataView byteLength 100000 0.142 0.187 0.046 1.323x

@richerfu richerfu merged commit 80f3f71 into main May 26, 2026
23 checks passed
@richerfu richerfu deleted the feat-support-node-addon branch May 26, 2026 09:24
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.

1 participant