Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log('uncompress')
console.time('snappy')
for(var i = 0; i < 100; ++i)
snappy.uncompressSync(input)
console.timeEnd('snappy')
console.time('snappy.js')
for(var i = 0; i < 100; ++i)
snappyjs.uncompress(input)
console.timeEnd('snappy.js')
console.log('isValidCompressed')
console.time('snappy')
for(var i = 0; i < 100; ++i)
snappy.isValidCompressedSync(input)
console.timeEnd('snappy')
console.time('snappy.js')
for(var i = 0; i < 100; ++i)
snappyjs.isValidCompressed(input)
console.timeEnd('snappy.js')