Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

algorithmic

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

algorithmic - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

bench/benchSorts.coffee

7

package.json

@@ -5,3 +5,3 @@ {

"author": "Chris Khoo",
"version": "0.0.5",
"version": "0.0.6",
"main": "lib/algorithmic.js",

@@ -20,3 +20,6 @@ "licenses": [

"node": ">=0.8.11"
},
"dependencies": {
"benchit": "0.0.1"
}
}
}

@@ -5,2 +5,25 @@ Algorithmic

Enjoy!
See src/ folder for more detail.
Benchmarks
----------
For fun, I did some sort benchmarks to compare sorting algorithms.
**benchSortsBig.coffee (10,000 integers)**
bubble sort elapsed: 493ms
bucket sort elapsed: 2ms
insertion sort elapsed: 140ms
mergesort elapsed: 16ms
quicksort elapsed: 11ms
in-place quicksort elapsed: 1ms
selection sort elapsed: 233ms
v8 sort elapsed: 3ms
**benchSortsBig.coffee (10 million integers)**
bucket sort (10,000 buckets) elapsed: 7419ms
bucket sort (100,000 buckets) elapsed: 2939ms
bucket sort (1,000,000 buckets) elapsed: 3480ms
in-place quicksort elapsed: 1834ms
v8 sort elapsed: 2922ms
Enjoy!

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc