Skip to content

Conversation

@fengmk2
Copy link

@fengmk2 fengmk2 commented Dec 18, 2025

  • Upgrade @napi-rs/cli to v3.5.0
  • Update rust-toolchain.toml from 1.82.0 to 1.88.0 (edition 2024 support)
  • Fix rand_core feature: change "getrandom" to "os_rng" in workspace
  • Use rand_core 0.6 in argon2 package to match password_hash dependency
  • Add lifetime parameter to KeywordExtractConfig in jieba for napi-rs 3.x

🤖 Generated with Claude Code

- Upgrade @napi-rs/cli to v3.5.0
- Update rust-toolchain.toml from 1.82.0 to 1.88.0 (edition 2024 support)
- Fix rand_core feature: change "getrandom" to "os_rng" in workspace
- Use rand_core 0.6 in argon2 package to match password_hash dependency
- Add lifetime parameter to KeywordExtractConfig in jieba for napi-rs 3.x

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>

await suite6.run()

console.table(suite6.table())
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is finally found that the crc32 exposed by node zlib is currently the fastest.

┌─────────┬───────────────────┬──────────────────────┬─────────────────────┬────────────────────────────┬───────────────────────────┬──────────┐
│ (index) │ Task name         │ Latency average (ns) │ Latency median (ns) │ Throughput average (ops/s) │ Throughput median (ops/s) │ Samples  │
├─────────┼───────────────────┼──────────────────────┼─────────────────────┼────────────────────────────┼───────────────────────────┼──────────┤
│ 0       │ '@node/rs crc32''143.81 ± 0.13%''125.00''7169138 ± 0.01%''8000000'                 │ 6953850  │
│ 1       │ 'node:zlib crc32''65.50 ± 0.09%''83.00''17290930 ± 0.02%''12048193'                │ 15267915 │
└─────────┴───────────────────┴──────────────────────┴─────────────────────┴────────────────────────────┴───────────────────────────┴──────────┘
┌─────────┬───────────────────┬──────────────────────┬─────────────────────┬────────────────────────────┬───────────────────────────┬──────────┐
│ (index) │ Task name         │ Latency average (ns) │ Latency median (ns) │ Throughput average (ops/s) │ Throughput median (ops/s) │ Samples  │
├─────────┼───────────────────┼──────────────────────┼─────────────────────┼────────────────────────────┼───────────────────────────┼──────────┤
│ 0       │ '@node/rs crc32''144.40 ± 0.05%''125.00''7109972 ± 0.01%''8000000'                 │ 6925434  │
│ 1       │ 'node:zlib crc32''65.48 ± 0.13%''83.00''17367666 ± 0.02%''12048193'                │ 15272761 │
└─────────┴───────────────────┴──────────────────────┴─────────────────────┴────────────────────────────┴───────────────────────────┴──────────┘

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