Code Monkey home page Code Monkey logo

perfchat's Introduction

perfchat

p2pclient is implementation of chat simulator, which works as a service on top of ethereum p2p engine

It has ability to spawn any number of workers by using addnodes.sh script.

Installation

Tested only on ubuntu 16.04

Install dependencies

# if ubuntu/debian
sudo apt install gcc
go get github.com/ethereum/go-ethereum
go install github.com/ethereum/go-ethereum/cmd/p2psim

Download source of p2pclient and install it:

go get github.com/phob0s-pl/perfchat
go install github.com/phob0s-pl/perfchat/cmd/p2pclient

Running

# In one window
p2pclient

# In second window we will communicate with p2pclient and spawn nodes there
$GOPATH/src/github.com/phob0s-pl/perfchat/cmd/p2pclient/addnodes.sh 10

Verification

Each 10s all nodes print simple statistics:

INFO [03-27|21:53:45] Stats: node.id=0f6e7cebda9c65fa msg_received=5964  groups_created=19 groups_exited=3 msg_sent=87277

Webinfo with the same statistics is available at

http://localhost:8888/

perfchat's People

Watchers

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