
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
fast-is-equal
Advanced tools
Blazing-fast equality checks, minus the baggage. A lean, standalone alternative to Lodash's isEqual—because speed matters.
⚡️Blazing-fast equality checks, minus the baggage. A lean, standalone alternative to Lodash's isEqual
- because speed matters.
isEqual
(average 11.73x faster across 49 test cases).Using yarn:
yarn add fast-is-equal
Using npm:
npm install fast-is-equal
import { fastIsEqual } from 'fast-is-equal';
console.log(fastIsEqual(1, 1)); // true
console.log(fastIsEqual({ a: 1 }, { a: 1 })); // true
console.log(fastIsEqual([1, 2], [1, 3])); // false
fast-is-equal
was tested against Lodash's isEqual
across 49 diverse test cases with 1,000,000 iterations each. The results speak for themselves:
fastIsEqual
is 11.73x faster (0.000172 ms vs. 0.002013 ms).Test Case | fastIsEqual (ms) | Lodash isEqual (ms) | Speed Boost |
---|---|---|---|
Large Set (100 items) | 0.000673 | 0.037564 | 55.84x 🚀 |
Map vs Set | 0.000018 | 0.000485 | 26.52x 🚀 |
Large Map (50 entries) | 0.001059 | 0.025756 | 24.32x 🚀 |
Map with primitives | 0.000092 | 0.001487 | 16.09x 🚀 |
Map (unequal) | 0.000092 | 0.001406 | 15.29x 🚀 |
Large TypedArray (1000) | 0.000944 | 0.013165 | 13.95x 🚀 |
ArrayBuffer (small) | 0.000092 | 0.001263 | 13.74x 🚀 |
Empty Set | 0.000058 | 0.000691 | 11.96x 🚀 |
Empty Map | 0.000058 | 0.000684 | 11.84x 🚀 |
Set of strings | 0.000082 | 0.000940 | 11.51x 🚀 |
Run yarn benchmark
or npm run benchmark
to test locally. Full results available in benchmarks/results.txt.
Only 3 cases where Lodash marginally outperforms (by less than 5%):
These represent cross-type comparisons with negligible real-world impact.
MIT
FAQs
Blazing-fast equality checks, minus the baggage. A lean, standalone alternative to Lodash's isEqual—because speed matters.
The npm package fast-is-equal receives a total of 265 weekly downloads. As such, fast-is-equal popularity was classified as not popular.
We found that fast-is-equal demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.