bench-flumelog
Advanced tools
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 @@ |
{ | ||
"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", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
6610
130
1