Releases: observ33r/memcmp
Releases · observ33r/memcmp
v1.0.0
Features
- High-performance memory comparison
- Uses
Buffer.compareinternally when available (Node, Bun). - Cross-platform fallback for Deno, browsers and web workers.
- Uses
- Broad compatibility
- Supports:
ArrayBuffer,SharedArrayBuffer,DataViewand all typed arrays (Int8Array,Uint8Array,Float64Array, etc.).
- Supports:
- Cross-realm safe
- Internal checks are constructor-aware to ensure consistent behavior across execution contexts.
- Fully type-safe
- Complete TypeScript declarations with strict input typing.
Benchmarks
- Benchmarks written using mitata.
- Runtime-aware benchmarking:
- Benchmark #1: Node/Bun with internal
Buffer.compare. - Benchmark #2: Deno/browsers with fallback logic.
- Benchmark #1: Node/Bun with internal
For detailed results, see the README benchmarks section.