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

bench-flumelog

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bench-flumelog - npm Package Compare versions

Comparing version 1.1.0 to 1.2.0

22

index.js

@@ -1,2 +0,1 @@

var pull = require('pull-stream')

@@ -84,2 +83,19 @@ var paramap = require('pull-paramap')

print('stream', c/time, (total/MB)/time, c, total/MB, time)
next2nocache()
})
)
}
function next2nocache () {
var total = 0, c = 0, start = Date.now()
pull(
log.stream({cache: false}),
pull.drain(function (d) {
c++
total += length(d)
seqs.push(d.seq)
if(Date.now() - start > 10e3) return false
}, function () {
var time = (Date.now() - start)/1000
print('stream no cache', c/time, (total/MB)/time, c, total/MB, time)
next_para()

@@ -89,3 +105,3 @@ })

}
function next_para () {

@@ -110,4 +126,2 @@ var total = 0, c = 0, start = Date.now()

)
}

@@ -114,0 +128,0 @@

2

package.json
{
"name": "bench-flumelog",
"version": "1.1.0",
"version": "1.2.0",
"description": "a simple benchmark of flumedb log implementations.",

@@ -5,0 +5,0 @@ "main": "index.js",

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