Skip to content

Benchmark project for XuperUnion (and other blockchain further)

Notifications You must be signed in to change notification settings

0311xuyang/xuperbench

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xbench

Benchmark project for XuperUnion (and other blockchain further)

Pre-requisites

Make sure following requiremants are satisfied:

  • Go (version >= 1.11)
  • Network (to get depend modules)

Build xuperbench

Just make it

Usage

Local mode

Send pressure with single endpoint

  • Prepare the environment of xuperunion
  • Edit the host address of benchmark config
  • Put the xbench binary into xuperunion path
  • Run bin/xbench -c conf/gen.conf

config meanings:

  • gen.conf : profiling normal transfer process
  • deal.conf : prepare transaction data before, profiling postTx process
  • invoke.conf : profiling contract invoke process

Remote mode

Send pressure distributedly

  • Prepare the environment of xuperunion
  • Prepare a environment of Redis (accessable for all endpoint)
  • Edit the host address of benchmark config
  • Edit the broker(redis) address of benchmark config
  • Put the xbench binary into xuperunion path (of each endpoint)
  • Run bin/xbench -worker -c conf/remote.conf on worker endpoints
  • Run bin/xbench -master -c conf/remote.conf on master endpoint
  • You can edit the conf like gen/deal/invoke to test chosen process

About

Benchmark project for XuperUnion (and other blockchain further)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Go 92.2%
  • Smarty 7.1%
  • Makefile 0.7%