@nxtedition/rocksdb 12.0.12 → 12.0.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/benchmarks/get-many.mjs +18 -4
- package/package.json +8 -8
- package/prebuilds/darwin-arm64/@nxtedition+rocksdb.node +0 -0
- package/tmp/{000235.sst → 000834.sst} +0 -0
- package/tmp/000835.sst +0 -0
- package/tmp/{000620.sst → 000873.sst} +0 -0
- package/tmp/000880.sst +0 -0
- package/tmp/000883.sst +0 -0
- package/tmp/{000290.sst → 000885.sst} +0 -0
- package/tmp/{000283.sst → 000888.sst} +0 -0
- package/tmp/{000282.sst → 000889.sst} +0 -0
- package/tmp/{000623.sst → 000891.sst} +0 -0
- package/tmp/001041.log +0 -0
- package/tmp/{000602.sst → 001045.sst} +0 -0
- package/tmp/{000291.sst → 001066.sst} +0 -0
- package/tmp/{000288.sst → 001069.sst} +0 -0
- package/tmp/{000287.sst → 001070.sst} +0 -0
- package/tmp/001071.sst +0 -0
- package/tmp/001072.sst +0 -0
- package/tmp/001073.sst +0 -0
- package/tmp/{000294.sst → 001074.sst} +0 -0
- package/tmp/001075.sst +0 -0
- package/tmp/001076.sst +0 -0
- package/tmp/001077.sst +0 -0
- package/tmp/001078.sst +0 -0
- package/tmp/001079.sst +0 -0
- package/tmp/001080.sst +0 -0
- package/tmp/001081.sst +0 -0
- package/tmp/001082.sst +0 -0
- package/tmp/001083.sst +0 -0
- package/tmp/001084.sst +0 -0
- package/tmp/001085.sst +0 -0
- package/tmp/001086.sst +0 -0
- package/tmp/001087.sst +0 -0
- package/tmp/001088.sst +0 -0
- package/tmp/001089.sst +0 -0
- package/tmp/001090.sst +0 -0
- package/tmp/001091.sst +0 -0
- package/tmp/001092.sst +0 -0
- package/tmp/001093.sst +0 -0
- package/tmp/001094.sst +0 -0
- package/tmp/CURRENT +1 -1
- package/tmp/MANIFEST-000986 +0 -0
- package/tmp/000236.sst +0 -0
- package/tmp/000594.log +0 -0
- package/tmp/000597.log +0 -0
- package/tmp/000617.sst +0 -0
- package/tmp/000618.sst +0 -0
- package/tmp/000619.sst +0 -0
- package/tmp/000621.sst +0 -0
- package/tmp/000622.sst +0 -0
- package/tmp/000624.sst +0 -0
- package/tmp/000625.sst +0 -0
- package/tmp/000626.sst +0 -0
- package/tmp/000627.sst +0 -0
- package/tmp/000628.sst +0 -0
- package/tmp/000629.sst +0 -0
- package/tmp/000630.sst +0 -0
- package/tmp/000631.sst +0 -0
- package/tmp/MANIFEST-000546 +0 -0
- /package/tmp/{OPTIONS-000455 → OPTIONS-000972} +0 -0
- /package/tmp/{OPTIONS-000548 → OPTIONS-000988} +0 -0
package/benchmarks/get-many.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { bench, run } from 'mitata'
|
|
1
|
+
import { bench, run, group, boxplot } from 'mitata'
|
|
2
2
|
import { RocksLevel } from '../index.js'
|
|
3
3
|
|
|
4
4
|
const db = new RocksLevel('./tmp', {
|
|
@@ -25,7 +25,14 @@ const getOpts = {
|
|
|
25
25
|
fillCache: true
|
|
26
26
|
}
|
|
27
27
|
|
|
28
|
-
|
|
28
|
+
const getUnsafeOpts = {
|
|
29
|
+
keyEncoding: 'buffer',
|
|
30
|
+
valueEncoding: 'buffer',
|
|
31
|
+
fillCache: true,
|
|
32
|
+
unsafe: true
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
for (let size = 1024; size <= 256 * 1024; size *= 2) {
|
|
29
36
|
const keys = []
|
|
30
37
|
for (let n = 0; n < 1024; n++) {
|
|
31
38
|
const key = `${n}-${size}`
|
|
@@ -33,9 +40,16 @@ for (let size = 1024 * 8; size <= 256 * 1024; size *= 2) {
|
|
|
33
40
|
await db.put(key, Buffer.allocUnsafe(size))
|
|
34
41
|
}
|
|
35
42
|
|
|
36
|
-
|
|
37
|
-
|
|
43
|
+
group(() => {
|
|
44
|
+
bench('_getManySync', async () => {
|
|
45
|
+
db._getManySync(keys, getOpts).length
|
|
46
|
+
})
|
|
47
|
+
|
|
48
|
+
bench('_getManySync unsafe', async () => {
|
|
49
|
+
db._getManySync(keys, getUnsafeOpts).length
|
|
50
|
+
})
|
|
38
51
|
})
|
|
52
|
+
|
|
39
53
|
}
|
|
40
54
|
|
|
41
55
|
await run()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nxtedition/rocksdb",
|
|
3
|
-
"version": "12.0.
|
|
3
|
+
"version": "12.0.13",
|
|
4
4
|
"description": "A low-level Node.js RocksDB binding",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "index.js",
|
|
@@ -15,10 +15,10 @@
|
|
|
15
15
|
"catering": "^2.1.1",
|
|
16
16
|
"module-error": "^1.0.2",
|
|
17
17
|
"napi-macros": "~2.2.2",
|
|
18
|
-
"node-gyp-build": "^4.8.
|
|
18
|
+
"node-gyp-build": "^4.8.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^
|
|
21
|
+
"@types/node": "^22.7.4",
|
|
22
22
|
"@voxpelli/tsconfig": "^4.0.0",
|
|
23
23
|
"async-each": "^1.0.3",
|
|
24
24
|
"cross-env": "^7.0.3",
|
|
@@ -27,15 +27,15 @@
|
|
|
27
27
|
"du": "^1.0.0",
|
|
28
28
|
"faucet": "^0.0.3",
|
|
29
29
|
"glob": "^8.0.3",
|
|
30
|
-
"lru-cache": "^11.0.
|
|
31
|
-
"mitata": "^0.
|
|
30
|
+
"lru-cache": "^11.0.1",
|
|
31
|
+
"mitata": "^1.0.10",
|
|
32
32
|
"mkfiletree": "^2.0.0",
|
|
33
|
-
"node-gyp": "^
|
|
33
|
+
"node-gyp": "^10.2.0",
|
|
34
34
|
"nyc": "^15.0.0",
|
|
35
35
|
"readfiletree": "^1.0.0",
|
|
36
36
|
"rimraf": "^3.0.0",
|
|
37
|
-
"standard": "^17.
|
|
38
|
-
"tape": "^5.
|
|
37
|
+
"standard": "^17.1.2",
|
|
38
|
+
"tape": "^5.9.0",
|
|
39
39
|
"tempy": "^1.0.1"
|
|
40
40
|
},
|
|
41
41
|
"standard": {
|
|
Binary file
|
|
Binary file
|
package/tmp/000835.sst
ADDED
|
Binary file
|
|
Binary file
|
package/tmp/000880.sst
ADDED
|
Binary file
|
package/tmp/000883.sst
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/tmp/001041.log
ADDED
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/tmp/001071.sst
ADDED
|
Binary file
|
package/tmp/001072.sst
ADDED
|
Binary file
|
package/tmp/001073.sst
ADDED
|
Binary file
|
|
Binary file
|
package/tmp/001075.sst
ADDED
|
Binary file
|
package/tmp/001076.sst
ADDED
|
Binary file
|
package/tmp/001077.sst
ADDED
|
Binary file
|
package/tmp/001078.sst
ADDED
|
Binary file
|
package/tmp/001079.sst
ADDED
|
Binary file
|
package/tmp/001080.sst
ADDED
|
Binary file
|
package/tmp/001081.sst
ADDED
|
Binary file
|
package/tmp/001082.sst
ADDED
|
Binary file
|
package/tmp/001083.sst
ADDED
|
Binary file
|
package/tmp/001084.sst
ADDED
|
Binary file
|
package/tmp/001085.sst
ADDED
|
Binary file
|
package/tmp/001086.sst
ADDED
|
Binary file
|
package/tmp/001087.sst
ADDED
|
Binary file
|
package/tmp/001088.sst
ADDED
|
Binary file
|
package/tmp/001089.sst
ADDED
|
Binary file
|
package/tmp/001090.sst
ADDED
|
Binary file
|
package/tmp/001091.sst
ADDED
|
Binary file
|
package/tmp/001092.sst
ADDED
|
Binary file
|
package/tmp/001093.sst
ADDED
|
Binary file
|
package/tmp/001094.sst
ADDED
|
Binary file
|
package/tmp/CURRENT
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
MANIFEST-
|
|
1
|
+
MANIFEST-000986
|
|
Binary file
|
package/tmp/000236.sst
DELETED
|
Binary file
|
package/tmp/000594.log
DELETED
|
Binary file
|
package/tmp/000597.log
DELETED
|
Binary file
|
package/tmp/000617.sst
DELETED
|
Binary file
|
package/tmp/000618.sst
DELETED
|
Binary file
|
package/tmp/000619.sst
DELETED
|
Binary file
|
package/tmp/000621.sst
DELETED
|
Binary file
|
package/tmp/000622.sst
DELETED
|
Binary file
|
package/tmp/000624.sst
DELETED
|
Binary file
|
package/tmp/000625.sst
DELETED
|
Binary file
|
package/tmp/000626.sst
DELETED
|
Binary file
|
package/tmp/000627.sst
DELETED
|
Binary file
|
package/tmp/000628.sst
DELETED
|
Binary file
|
package/tmp/000629.sst
DELETED
|
Binary file
|
package/tmp/000630.sst
DELETED
|
Binary file
|
package/tmp/000631.sst
DELETED
|
Binary file
|
package/tmp/MANIFEST-000546
DELETED
|
Binary file
|
|
File without changes
|
|
File without changes
|