GithubHelp home page GithubHelp logo

samkenxstream / samkenx_crypto-bench Goto Github PK

View Code? Open in Web Editor NEW

This project forked from dominictarr/crypto-bench

0.0 0.0 1.0 2.24 MB

License: MIT License

Shell 16.50% JavaScript 24.50% CSS 5.88% HTML 53.12%

samkenx_crypto-bench's Introduction

crypto-bench

benchmark the various js crypto libraries

results

results are discussed here: markdown format and typeset for maximum credibitily

libraries

  • sjcl
  • crypto-js
  • forge
  • sha.js (part of crypto-browserify)

node.js is disabled, because it's so much faster (20x) that is obscures the results of the js libraries.

benchmarks

hash

Hash random data from 20 bytes - 10 MB. This tests the libraries ability to hash lots of data.

#                  library                       algorithm
node bench-hash.js [node|crypto-js|forge|sha.js] [sha1|sha256]

pkbdf2

pkbdf2 a password, with variable iterations. This tests how fast it is to create hash objects, as thousand of hashes are created, but they each hash a small amount of data.

#                    library                       algorithm
node bench-pkbdf2.js [node|crypto-js|forge|sha.js] [sha1|sha256]

run all benchmarks

./run.sh all hash
./run.sh all pbkdf2

# regenerate graphs
./runs.sh graphs

# regenerate article
npm run build

License

MIT

samkenx_crypto-bench's People

Contributors

bnjmnt4n avatar dcousens avatar dominictarr avatar fanatid avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.