This repository was archived by the owner on Dec 1, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +16
-16
lines changed
Expand file tree Collapse file tree 2 files changed +16
-16
lines changed Original file line number Diff line number Diff line change 4949 "prebuildify-cross" : " ^4.0.0" ,
5050 "readfiletree" : " ^1.0.0" ,
5151 "rimraf" : " ^3.0.0" ,
52- "standard" : " ^14 .0.0" ,
52+ "standard" : " ^15 .0.0" ,
5353 "tape" : " ^4.10.0" ,
5454 "tempy" : " ^0.3.0"
5555 },
Original file line number Diff line number Diff line change @@ -25,24 +25,24 @@ function print () {
2525
2626const run = CHAINED
2727 ? function ( ) {
28- const batch = db . batch ( )
28+ const batch = db . batch ( )
2929
30- for ( let i = 0 ; i < 100 ; i ++ ) {
31- let key = 'long key to test memory usage ' + String ( Math . floor ( Math . random ( ) * 10000000 ) )
32- if ( BUFFERS ) key = Buffer . from ( key )
33- let value = crypto . randomBytes ( 1024 )
34- if ( ! BUFFERS ) value = value . toString ( 'hex' )
35- batch . put ( key , value )
36- }
30+ for ( let i = 0 ; i < 100 ; i ++ ) {
31+ let key = 'long key to test memory usage ' + String ( Math . floor ( Math . random ( ) * 10000000 ) )
32+ if ( BUFFERS ) key = Buffer . from ( key )
33+ let value = crypto . randomBytes ( 1024 )
34+ if ( ! BUFFERS ) value = value . toString ( 'hex' )
35+ batch . put ( key , value )
36+ }
3737
38- batch . write ( function ( err ) {
39- assert ( ! err )
40- process . nextTick ( run )
41- } )
38+ batch . write ( function ( err ) {
39+ assert ( ! err )
40+ process . nextTick ( run )
41+ } )
4242
43- writeCount ++
44- print ( )
45- }
43+ writeCount ++
44+ print ( )
45+ }
4646 : function ( ) {
4747 const batch = [ ]
4848
You can’t perform that action at this time.
0 commit comments