Benchmarks are release checks, not product promises. Use them to catch regressions on the local machine and CI image used by this repo.
Run:
bun run benchmark -- --filter=react-native-nitro-storageThe benchmark script checks representative synchronous read/write paths and fails when results drift beyond the configured threshold.
- Compare results on the same machine and Node/Bun version.
- Treat large deltas as a prompt to inspect recent storage-runtime, serialization, native bridge, or cache changes.
- Do not compare web backend numbers against native secure storage numbers; they measure different systems.
- Secure storage performance depends on platform state, device lock state, biometric prompts, and Keystore/Keychain behavior.
Before publishing:
bun run lint -- --filter=react-native-nitro-storage
bun run format:check -- --filter=react-native-nitro-storage
bun run typecheck -- --filter=react-native-nitro-storage
bun run test:types -- --filter=react-native-nitro-storage
bun run test -- --filter=react-native-nitro-storage
bun run test:cpp -- --filter=react-native-nitro-storage
bun run build -- --filter=react-native-nitro-storage
bun run benchmark -- --filter=react-native-nitro-storage
bun run --cwd packages/react-native-nitro-storage check:pack
npm publish --dry-runKeep the dry-publish output in the release notes when validating a version locally.