Socket
Socket
Sign inDemoInstall

circularray

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.0 to 0.2.0

benchmark.js

4

package.json
{
"name": "circularray",
"version": "0.1.0",
"version": "0.2.0",
"description": "A fast circular array implementation in JavaScript.",
"main": "index.js",
"types": "index.d.ts",
"license": "MIT",

@@ -6,0 +8,0 @@ "author": "Kitty Giraudel (https://kittygiraudel.com)",

@@ -96,2 +96,11 @@ # Circularray

## Benchmark
| Josephus with k=2 | Circularray | Array |
| :---------------- | :---------- | :---- |
| 10_000 items | ~10ms | ~4ms |
| 100_000 items | ~25ms | ~1.8s |
| 500_000 items | ~100ms | ~45s |
| 1_000_000 items | ~250ms | ~4mn |
## Development

@@ -98,0 +107,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc