Socket
Socket
Sign inDemoInstall

binarius

Package Overview
Dependencies
0
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    binarius

Store and operate on data in Numbers and BigInts for memory savings, performance, and fun.


Version published
Weekly downloads
2
increased by100%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

Binarius

npm Travis branch Codecov

Store and operate on data in Numbers and BigInts for memory savings, performance, and fun.

Installation

npm i binarius -S 

Usage

Benchmark

>node benchmark.js
Construct:
   Binarius Number x 29,866,474 ops/sec ±8.67% (57 runs sampled)
   Binarius BigInt x 674,095 ops/sec ±2.11% (83 runs sampled)

Get Field:
   Binarius Number x 8,643,094 ops/sec ±9.13% (59 runs sampled)
   Binarius BigInt x 617,815 ops/sec ±6.50% (73 runs sampled)

Set Field:
   Binarius Number x 6,918,546 ops/sec ±8.78% (78 runs sampled)
   Binarius BigInt x 477,000 ops/sec ±5.86% (84 runs sampled)

Construct for bit flags:
   Binarius x 8,019,238 ops/sec ±7.24% (47 runs sampled)
   parseInt x 9,128,021 ops/sec ±7.62% (61 runs sampled)

Get bit flag:
   Binarius x 26,310,759 ops/sec ±10.21% (59 runs sampled)
   Bits x 40,664,455 ops/sec ±2.06% (86 runs sampled)

Set bit flag:
   Binarius x 14,740,229 ops/sec ±9.67% (52 runs sampled)
   Bits x 30,816,599 ops/sec ±11.43% (51 runs sampled)

License

MIT © Maga D. Zandaqo

Keywords

FAQs

Last updated on 05 Jan 2019

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc