Git Product home page Git Product logo

filbench's Introduction

filbench

Filecoin benchmarking tool

Background

Filecoin is currently under active development by the Protocol Labs, and developers or miners can use go-filecoin or lotus to participate in the devnet. However, there is a lack of a utility that can quickly test some of Filecoin's key algorithms (such as PoRep and PoSt), which is not conducive to the miners evaluating the performance of commercial mining hardware as good as the manufacturer claims. Therefore, a simple and practical benchmarking tool filbench has been developed by us, hoping to help developers and miners to a certain extent.

Filecoin 目前正由协议实验室紧张开发中,开发者或矿工可以使用 go-filecoinlotus 来参与开发者测试网。然而缺少一款可以迅速测试 Filecoin 的某些关键算法(比如复制证明和时空证明)的实用工具,这也不利于矿工评测商业矿机的性能是否如厂家宣称的那样棒。因此,filbench 这样一个简洁实用的基准测试工具就被我们开发了,希望在一定程度上能够帮助开发者和矿工。

Install

The released binary can be downloaded:

$ wget https://github.com/filcloud/filbench/releases/download/0.0.1/filbench-0.0.1-ubuntu-18.04-amd64.tar.gz
$ tar zxvf filbench-0.0.1-ubuntu-18.04-amd64.tar.gz
$ mv filbench /usr/local/bin/

Or, you can clone this project and compile it.

This project depends on go-filecoin now, so you should ensure that it has been in your GOPATH directory.

Then, install filbench:

$ mkdir -p ${GOPATH}/src/github.com/filcloud
$ cd ${GOPATH}/src/github.com/filcloud
$ git clone https://github.com/filcloud/filbench.git
$ cd filbench
$ go install

Usage

Initialize filbench repo directory (default to ~/.filbench):

$ filbench init

Generate several pieces of 254MB (here is 2), and seal them into sectors of 256MB (i.e. PoRep):

$ filbench sector-builder generate-piece --piece-num 2

Verify the results of PoRep above:

$ filbench sector-builder verify-sectors-porep

Generate PoSt of those sealed sectors, and verify them:

$ filbench sector-builder verify-sectors-post

Maintainers

@RideWindX.

Contributing

Feel free to dive in! Open an issue or submit PRs.

License

MIT © FilCloud

filbench's People

Contributors

ridewindx avatar

Stargazers

 avatar

Watchers

James Cloos avatar  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.