Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@liskhq/lisk-db

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@liskhq/lisk-db

A database access implementation for use with Lisk-related software

  • 0.2.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@liskhq/lisk-db

@liskhq/lisk-db is a database access implementation for use with Lisk-related software.

Installation

$ npm install --save @liskhq/lisk-db

Benchmarking

System configuration:

Ubuntu: 18.04.3 (LTS) x64
8 GB / 4 CPUs
160 GB SSD disk

Install dependencies:

$ npm i

Benchmark embedded databases:

Default payload size is 1024, pass payload size according to benchmarking

$ node ./benchmark/index.js 15000

Benchmark results leveldb vs rocksdb (15,000 bytes):

OperationLeveldbRocksdbWinner% change
getx 61,274 ops/sec ±13.94%x 47,785 ops/sec ±14.31%Leveldb28
putx 22,668 ops/sec ±19.58%x 32,666 ops/sec ±13.56%Rocksdb44
delx 51,503 ops/sec ±18.72%x 51,415 ops/sec ±21.31%Leveldb0.17
batchx 2,427 ops/sec ±11.34%x 105,386 ops/sec ±66.37%Rocksdb4242

Benchmark results leveldb vs rocksdb (50,000 bytes):

OperationLeveldbRocksdbWinner% change
getx 50,070 ops/sec ±19.63%x 46,941 ops/sec ±29.65%Leveldb6.6
putx 14,355 ops/sec ±20.95%x 4,483 ops/sec ±24.78%Leveldb220
delx 50,609 ops/sec ±25.45%x 39,479 ops/sec ±32.27%Leveldb28
batchx 674 ops/sec ±14.39%x 133,690 ops/sec ±12.28%Rocksdb19735

Benchmark results leveldb vs rocksdb (100,000 bytes):

OperationLeveldbRocksdbWinner% change
getx 41,040 ops/sec ±20.37%x 48,913 ops/sec ±14.79%Rocksdb19.18
putx 5,446 ops/sec ±19.04%x 11,592 ops/sec ±16.66%Rocksdb112.8
delx 53,184 ops/sec ±31.21%x 48,948 ops/sec ±10.19%Rocksdb8.65
batchx 679 ops/sec ±5.71%x 146,248 ops/sec ±20.69%Rocksdb21438

Benchmark results leveldb vs rocksdb (150,000 bytes):

OperationLeveldbRocksdbWinner% change
getx 44,966 ops/sec ±19.13%x 39,282 ops/sec ±15.83%Leveldb14.46
putx 5,508 ops/sec ±22.79%x 8,674 ops/sec ±10.63%Rocksdb57.48
delx 70,292 ops/sec ±13.37%x 38,684 ops/sec ±19.42%Leveldb81.70
batchx 389 ops/sec ±10.68%x 81,421 ops/sec ±23.89%Rocksdb20830

License

Copyright 2016-2020 Lisk Foundation

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Keywords

FAQs

Package last updated on 28 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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