Socket
Socket
Sign inDemoInstall

fast-crc32c

Package Overview
Dependencies
95
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.4 to 0.1.5

6

impls/sse4_crc32c.js

@@ -1,7 +0,5 @@

var CRC32 = require('sse4_crc32').CRC32;
var sse4_crc32 = require('sse4_crc32');
module.exports = {
calculate: function(data, initial) {
return new CRC32(data, initial).crc();
}
calculate: sse4_crc32.calculate
};
{
"name": "fast-crc32c",
"description": "CRC32C algorithm with hardware acceleration and software fallback.",
"version": "0.1.4",
"version": "0.1.5",
"author": "Xiaoyi Shi <ashi009@gmail.com>",

@@ -15,3 +15,3 @@ "repository": {

"optionalDependencies": {
"sse4_crc32": "^2.0.0"
"sse4_crc32": "^2.1.2"
},

@@ -18,0 +18,0 @@ "scripts": {

@@ -27,16 +27,16 @@ # fast-crc32c [![NPM version](https://badge.fury.io/js/fast-crc32c.png)](http://badge.fury.io/js/fast-crc32c) [![Build Status](https://travis-ci.org/ashi009/node-fast-crc32c.svg?branch=master)](https://travis-ci.org/ashi009/node-fast-crc32c)

```
$ node benchmark
sse4_crc32c for inputs 1024B x 2,958,062 ops/sec ±0.31% (95 runs sampled)
sse4_crc32c for inputs 16723579B, avg 2041B x 240 ops/sec ±0.26% (90 runs sampled)
js_crc32c for inputs 1024B x 359,336 ops/sec ±0.33% (95 runs sampled)
js_crc32c for inputs 16723579B, avg 2041B x 22.31 ops/sec ±0.34% (42 runs sampled)
js_crc32 for inputs 1024B x 224,722 ops/sec ±0.39% (101 runs sampled)
js_crc32 for inputs 16723579B, avg 2041B x 14.10 ops/sec ±0.18% (40 runs sampled)
$ npm run-script benchmark
sse4_crc32c for inputs 1024B x 1,882,511 ops/sec ±0.91% (96 runs sampled)
sse4_crc32c for inputs 16696054B, avg 2038B x 161 ops/sec ±0.80% (85 runs sampled)
js_crc32c for inputs 1024B x 357,426 ops/sec ±1.09% (93 runs sampled)
js_crc32c for inputs 16696054B, avg 2038B x 21.91 ops/sec ±1.64% (41 runs sampled)
js_crc32 for inputs 1024B x 360,304 ops/sec ±0.94% (93 runs sampled)
js_crc32 for inputs 16696054B, avg 2038B x 23.17 ops/sec ±0.49% (43 runs sampled)
```
| Impl | 1024B | 16723579B, avg 2041B |
| Impl | 1024B | 16696054B, avg 2038B |
|:------------|------------------:|---------------------:|
| sse4_crc32c | 2,958,062 ops/sec | 240 ops/sec |
| js_crc32c | 359,336 ops/sec | 22.31 ops/sec |
| js_crc32 | 224,722 ops/sec | 14.10 ops/sec |
| sse4_crc32c | 1,882,511 ops/sec | 161 ops/sec |
| js_crc32c | 357,426 ops/sec | 21.91 ops/sec |
| js_crc32 | 360,304 ops/sec | 23.17 ops/sec |

@@ -43,0 +43,0 @@ ## Install

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