Skip to content

Commit

Permalink
Removed subleveldown and replaced with KeyPath and LevelPath
Browse files Browse the repository at this point in the history
  • Loading branch information
CMCDragonkai committed Mar 27, 2022
1 parent 213efc6 commit aa51544
Show file tree
Hide file tree
Showing 13 changed files with 1,153 additions and 1,061 deletions.
12 changes: 6 additions & 6 deletions benches/DB1KiB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ async function main() {
const summary = await b.suite(
'DB1KiB',
b.add('get 1 KiB of data', async () => {
await db.put([], '1kib', data1KiB, true);
await db.put('1kib', data1KiB, true);
return async () => {
await db.get([], '1kib', true);
await db.get('1kib', true);
};
}),
b.add('put 1 KiB of data', async () => {
await db.put([], '1kib', data1KiB, true);
await db.put('1kib', data1KiB, true);
}),
b.add('put zero data', async () => {
await db.put([], '0', data0, true);
await db.put('0', data0, true);
}),
b.add('put zero data then del', async () => {
await db.put([], '0', data0, true);
await db.del([], '0');
await db.put('0', data0, true);
await db.del('0');
}),
b.cycle(),
b.complete(),
Expand Down
12 changes: 6 additions & 6 deletions benches/DB1MiB.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,20 +20,20 @@ async function main() {
const summary = await b.suite(
'DB1MiB',
b.add('get 1 MiB of data', async () => {
await db.put([], '1kib', data1MiB, true);
await db.put('1kib', data1MiB, true);
return async () => {
await db.get([], '1kib', true);
await db.get('1kib', true);
};
}),
b.add('put 1 MiB of data', async () => {
await db.put([], '1kib', data1MiB, true);
await db.put('1kib', data1MiB, true);
}),
b.add('put zero data', async () => {
await db.put([], '0', data0, true);
await db.put('0', data0, true);
}),
b.add('put zero data then del', async () => {
await db.put([], '0', data0, true);
await db.del([], '0');
await db.put('0', data0, true);
await db.del('0');
}),
b.cycle(),
b.complete(),
Expand Down
86 changes: 0 additions & 86 deletions benches/DBLevel.ts

This file was deleted.

123 changes: 1 addition & 122 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 1 addition & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,16 @@
"@matrixai/logger": "^2.1.0",
"@matrixai/resources": "^1.0.0",
"@matrixai/workers": "^1.2.5",
"abstract-leveldown": "^7.2.0",
"@types/abstract-leveldown": "^7.2.0",
"level": "7.0.1",
"levelup": "^5.1.1",
"sublevel-prefixer": "^1.0.0",
"subleveldown": "^6.0.1",
"threads": "^1.6.5",
"ts-custom-error": "^3.2.0"
},
"devDependencies": {
"@types/abstract-leveldown": "^7.2.0",
"@types/jest": "^26.0.20",
"@types/level": "^6.0.0",
"@types/levelup": "^5.1.0",
"@types/node": "^14.14.35",
"@types/node-forge": "^0.10.4",
"@types/subleveldown": "^4.1.1",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"benny": "^3.6.15",
Expand Down
Loading

0 comments on commit aa51544

Please sign in to comment.