New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bench-flumelog

Package Overview
Dependencies
Maintainers
1
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.0.0 to 1.0.1

34

index.js

@@ -26,3 +26,3 @@

function log (str) {
function print (str) {
str = [].slice.call(arguments).map(function (s) {

@@ -32,6 +32,6 @@ return 'string' === typeof s ? s : ~~(s*1000)/1000

if('undefined' === typeof window) {
if('undefined' !== typeof window) {
var pre = document.createElement('pre')
pre.textContent = str
document.appendChild(pre)
document.body.appendChild(pre)
}

@@ -47,3 +47,3 @@ console.log(str)

console.log('name, ops/second, mb/second, ops, total-mb, seconds')
print('name, ops/second, mb/second, ops, total-mb, seconds')

@@ -69,3 +69,3 @@ log.since.once(function () {

var time = (Date.now() - start)/1000
console.log('append', c/time, (total/MB)/time, c, total/MB, time)
print('append', c/time, (total/MB)/time, c, total/MB, time)
next2()

@@ -87,3 +87,3 @@ })

var time = (Date.now() - start)/1000
console.log('stream', c/time, (total/MB)/time, c, total/MB, time)
print('stream', c/time, (total/MB)/time, c, total/MB, time)
next3()

@@ -109,3 +109,3 @@ })

var time = (Date.now() - start)/1000
console.log('random', c/time, (total/MB)/time, c, total/MB, time)
print('random', c/time, (total/MB)/time, c, total/MB, time)
})

@@ -115,21 +115,1 @@ )

}
{
"name": "bench-flumelog",
"version": "1.0.0",
"version": "1.0.1",
"description": "a simple benchmark of flumedb log implementations.",

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

@@ -16,6 +16,6 @@ # bench-flumelog

```
name, ops/second, mb/second, ops, total mb, mb/second, mb/op
append 93746.3029576339 11.862183646332447 938213 118.71673393249512 0.00012653494881492274 8.906356811523438
stream 89671.13288671133 11.346503670555796 896801 113.47638320922852 0.00012653463054705395 24.15149688720703
random 24010.69893010699 3.0381734127307487 240131 30.384772300720215 0.00012653415136204912 22.291366577148438
name, ops/second, mb/second, ops, total-mb, seconds
append, 109777.644, 13.881, 1097996, 138.844, 10.002
stream, 105121.787, 13.292, 1051323, 132.942, 10.001
random, 26169.883, 3.309, 261725, 33.095, 10.001
```

@@ -25,6 +25,6 @@ ### [flumelog-level](https://github.com/flumedb/flumelog-level)

```
name, ops/second, mb/second, ops, total mb, mb/second, mb/op
append 54300.04982561036 6.86875596590522 544901 68.92796611785889 0.00012649631055523642
stream 69618.11677526511 8.80643491987465 544901 68.92796611785889 0.00012649631055523642
random 28183.68163183682 3.565163388751457 281865 35.65519905090332 0.00012649743334895543
name, ops/second, mb/second, ops, total-mb, seconds
append, 64168.894, 8.116, 643229, 81.359, 10.024
stream, 69560.83, 8.798, 643229, 81.359, 9.247
random, 31589.041, 3.995, 315922, 39.959, 10.001
```

@@ -37,6 +37,6 @@

```
name, ops/second, mb/second, ops, total mb
append 105565.36502546689 13.356010408819609 1057026 133.73373222351074
stream 3632391.7525773197 459.56609011515724 1057026 133.73373222351074
random 548126.0873912609 69.34816219153231 5481809 693.5509700775146
name, ops/second, mb/second, ops, total-mb, seconds
append, 121065.388, 15.313, 1212712, 153.391, 10.017
stream, 247025.213, 574.498, 1212712, 153.391, 0.267
random, 662146.485, 83.752, -1967807.592, 837.605, 10.001
```

@@ -51,13 +51,14 @@

```
name, ops/second, mb/second, ops, total mb, mb/second
append 7205.683606405628 0.91206355414037 77843 9.853022575378418
stream 2533.9466053394663 0.3205902897564248 25342 3.206223487854004
random 3531.9468053194682 0.4468583521896834 35323 4.469030380249023
name, ops/second, mb/second, ops, total-mb, seconds
append, 7738.949, 0.979, 81940, 10.366, 10.588
stream, 2996.709, 0.379, 30054, 3.802, 10.029
random, 4072.355, 0.515, 40805, 5.162, 10.02
```
(electron/chromium)
```
name, ops/second, mb/second, ops, total mb, mb/second
append 5727.681246255243 0.7248968570466191 57357 7.259117126464844
stream 2909.80901909809 0.36796313883626286 29101 3.679999351501465
random 4517.296540691861 0.5712491039084663 45182 5.7136335372924805
name, ops/second, mb/second, ops, total-mb, seconds
append, 6179.487, 0.782, 65552, 8.295, 10.608
stream, 3189.681, 0.403, 31900, 4.037, 10.001
random, 5695.873, 0.72, 57010, 7.215, 10.009
```

@@ -69,1 +70,6 @@

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