Code Monkey home page Code Monkey logo

fastest-blockchain's Introduction

fastest-blockchain

Fastest block chain demo 一个极简的超级快的区块链系统。

各模块的选择

密码学库

  • 签名与验签算法选择Ed25519,实测比Ecdsa快不少。
  • 哈希算法选SHA256,因为MD5和SHA1虽然更快,但不安全

客户端与节点网络通讯

选GRPC,而且不启用TLS,理论上启用TLS会增加CPU消耗。 Client使用SendTxStream进行流式发送,实测比SendTx快10多倍。

性能指标

硬件

MacBook Pro M1芯片8核,16G内存,SSD硬盘,本地网络 Server 64核,128G内存,SSD硬盘,本地网络

存证性能

在存证模式下,200字节的存证数据,1s产块间隔 M1 TPS: 66660 Server: 27W

fastest-blockchain's People

Contributors

studyzy 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.