Skip to content

Releases: observ33r/memcmp

v1.0.0

24 Jul 17:00

Choose a tag to compare

Features

  • High-performance memory comparison
    • Uses Buffer.compare internally when available (Node, Bun).
    • Cross-platform fallback for Deno, browsers and web workers.
  • Broad compatibility
    • Supports: ArrayBuffer, SharedArrayBuffer, DataView and all typed arrays (Int8Array, Uint8Array, Float64Array, etc.).
  • 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.

For detailed results, see the README benchmarks section.