Socket
Socket
Sign inDemoInstall

sse4_crc32

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sse4_crc32 - npm Package Compare versions

Comparing version 1.1.3 to 2.0.0

benchmark/crc32c_benchmark.c

5

package.json

@@ -13,3 +13,3 @@ {

],
"version": "1.1.3",
"version": "2.0.0",
"author": "Anand Suresh <anandsuresh@gmail.com> (https://github.com/anandsuresh)",

@@ -34,3 +34,4 @@ "licenses": [

"bindings": "~1.1.1",
"nan": "~0.6.0"
"nan": "~0.6.0",
"node-gyp": "~0.12.2"
},

@@ -37,0 +38,0 @@ "devDependencies": {

17

README.md
# SSE4-CRC32
Starting with the Nehalam series, Intel processors feature the Streaming SIMD Extensions instruction set which provide a
hardware-accelerated version of the CRC32 algorithm (Castagnoli variant). This library uses the Intel SSE 4.2
Starting with the Nehalam series, Intel processors feature the Streaming SIMD
Extensions instruction set which provide a hardware-accelerated version of
the CRC32 algorithm (Castagnoli variant). This library uses the Intel SSE 4.2
instruction set to provide a fast CRC-32 algorithm.

@@ -10,3 +11,4 @@

- Intel Streaming SIMD Extensions 4.2 based hardware accelerated CRC 32 calculation
- Intel Streaming SIMD Extensions 4.2 based hardware accelerated CRC 32
calculation
- Progressive CRC32 calculation

@@ -38,3 +40,4 @@ - Supports Node.js buffers

As you can see, the SSE4_CRC32 library is about **31.74** times faster than the pure JS library!
The results clearly show that the SSE4_CRC32 library is about **31.74** times
faster than the pure JS library!

@@ -63,3 +66,3 @@

var SSE4CRC32 = new SSE4CRC32.CRC32(),
var sse4crc32 = new SSE4CRC32.CRC32(),
my_inputs = [ "some string", new Buffer("a buffer"), "yet another string", new Buffer("yet another buffer") ],

@@ -69,6 +72,6 @@ crc;

my_inputs.forEach(function (string) {
crc = SSE4CRC32.update(string);
crc = sse4crc32.update(string);
});
crc = SSE4CRC32.crc(); // The .crc() method can also be used to get the final CRC
crc = sse4crc32.crc(); // The .crc() method can also be used to get the final CRC

@@ -75,0 +78,0 @@ Also see the example code in the [examples](https://github.com/anandsuresh/sse4_crc32/tree/master/examples)

@@ -9,11 +9,11 @@ var SSE4CRC32 = require("../sse4_crc32"),

input : "SSE4-CRC32: A hardware accelerated CRC32 implementation for node.js",
output: 478148685
output: 3039989317
},
{
input : new Buffer("SSE4-CRC32: A hardware accelerated CRC32 implementation for node.js"),
output: 478148685
output: 3039989317
},
{
input : [ "SSE4-CRC32: ", "A hardware accelerated CRC32 implementation ", "for node.js" ],
output: 478148685
output: 3039989317
}

@@ -20,0 +20,0 @@ ];

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