algorithmic
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Empty package
Supply chain riskPackage does not contain any code. It may be removed, is name squatting, or the result of a faulty package publish.
Found 1 instance in 1 package
81240
97
1431
29
1
2
+ Addedbenchit@0.0.1
+ Addedbenchit@0.0.1(transitive)