ooibc88 / blockbench

BLOCKBENCH: A Framework for Analyzing Private Blockchains. Blockbench contains workloads for measuring the data processing performance, and workloads for understanding the performance of different layers of Blockchain systems.
https://www.comp.nus.edu.sg/~dbsystem/fabricsharp/#/blockbench
Apache License 2.0
391 stars 174 forks source link

./driver -db fabric-v1.4 -ops 1000 -threads 4 -txrate 100 -fp stat.txt -endpoint localhost:7041,localhost:7051 #76

Open hhp2020 opened 4 years ago

hhp2020 commented 4 years ago

Hi

I was wondering when I tried to run this command it generate no such a file ./driver

where should i run this command?

David-Sat commented 4 years ago

You have to compile the smallbank driver beforehand. In your console: cd ~/blockbench/src/macro/smallbank make

then navigate to the smallbank folder to execute your original command.

yogesa commented 1 year ago

I have make in this content, but I encouter a new question , such make -C api_adapters make[1]: Entering directory '/usr/local/blockbench/src/macro/smallbank/api_adapters' g++ -std=c++11 -c -g -Wall -I../ SmallBank.cc -o SmallBank.o SmallBank.cc:1:10: fatal error: restclient-cpp/restclient.h: No such file or directory

include <restclient-cpp/restclient.h>

      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

compilation terminated. Makefile:10: recipe for target 'SmallBank.o' failed make[1]: [SmallBank.o] Error 1 make[1]: Leaving directory '/usr/local/blockbench/src/macro/smallbank/api_adapters' Makefile:13: recipe for target 'api_adapters' failed make: [api_adapters] Error 2

KunPengRen commented 1 year ago

@yogesa you should install the restclient-cpp library with our patch version https://github.com/ooibc88/blockbench#c-libraries

yogesa commented 1 year ago

@yogesa you should install the restclient-cpp library with our patch version https://github.com/ooibc88/blockbench#c-libraries I have patch restclient in this content , such as ~/Downloads/restclient-cpp, the restclient-cpp is that git clone from github project.

I run the code , the result is 
andres@ubuntu1:~/Downloads/restclient-cpp$ patch -p4 < /usr/local/blockbench/benchmark/parity/patch_restclient
(Stripping trailing CRs from patch; use --binary to disable.)
patching file source/restclient.cc
Reversed (or previously applied) patch detected!  Assume -R? [n] y 
Hunk #1 succeeded at 81 (offset 13 lines).

But I am not sure that it is correct !

I am a beginner, If you give me any help,I would appreciate it very much。

Then I make in /usr/local/blockbench/src/macro/kvstore , but but it still make fail~ the result is andres@ubuntu1:/usr/local/blockbench/src/macro/kvstore$ make make -C core make[1]: Entering directory '/usr/local/blockbench/src/macro/kvstore/core' g++ -std=c++11 -c -g -Wall fabricv2_util.cc -o fabricv2_util.o In file included from fabricv2_utils.h:10:0, from fabricv2_util.cc:1: bb_utils.h:13:10: fatal error: restclient-cpp/restclient.h: No such file or directory

include <restclient-cpp/restclient.h>

^~~~~~~~~ compilation terminated. Makefile:9: recipe for target 'fabricv2_util.o' failed make[1]: [fabricv2_util.o] Error 1 make[1]: Leaving directory '/usr/local/blockbench/src/macro/kvstore/core' Makefile:12: recipe for target 'core' failed make: [core] Error 2

yogesa commented 1 year ago

@yogesa you should install the restclient-cpp library with our patch version https://github.com/ooibc88/blockbench#c-libraries I have patch restclient in this content , such as ~/Downloads/restclient-cpp, the restclient-cpp is that git clone from github project.

I run the code , the result is 
andres@ubuntu1:~/Downloads/restclient-cpp$ patch -p4 < /usr/local/blockbench/benchmark/parity/patch_restclient
(Stripping trailing CRs from patch; use --binary to disable.)
patching file source/restclient.cc
Reversed (or previously applied) patch detected!  Assume -R? [n] y 
Hunk #1 succeeded at 81 (offset 13 lines).
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
But I am not sure that it is correct !
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
I am a beginner, If you give me any help,I would appreciate it very much。
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Then I make in /usr/local/blockbench/src/macro/kvstore , but but it still make fail~
the result is 
andres@ubuntu1:/usr/local/blockbench/src/macro/kvstore$ make
make -C core
make[1]: Entering directory '/usr/local/blockbench/src/macro/kvstore/core'
g++ -std=c++11 -c -g -Wall fabricv2_util.cc -o fabricv2_util.o
In file included from fabricv2_utils.h:10:0,
                 from fabricv2_util.cc:1:
bb_utils.h:13:10: fatal error: restclient-cpp/restclient.h: No such file or directory
 #include <restclient-cpp/restclient.h>
          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:9: recipe for target 'fabricv2_util.o' failed
make[1]: *** [fabricv2_util.o] Error 1
make[1]: Leaving directory '/usr/local/blockbench/src/macro/kvstore/core'
Makefile:12: recipe for target 'core' failed
make: *** [core] Error 2

Thanks, I have solve it。 I find execute the patch -p4 < $BLOCK_BENCH_HOME/benchmark/parity/patch_restclient , then I need continue install restclient-cpp。Then I have fix the question by search, The above question is solve andres@ubuntu1:~/Downloads/restclient-cpp$ ./autogen.sh testing for glibtoolize ... using libtoolize ./autogen.sh: 12: ./autogen.sh: libtoolize: not found ./autogen.sh: 13: ./autogen.sh: aclocal: not found ./autogen.sh: 14: ./autogen.sh: autoconf: not found ./autogen.sh: 15: ./autogen.sh: autoheader: not found ./autogen.sh: 16: ./autogen.sh: automake: not found ./autogen.sh: 17: ./autogen.sh: ./configure: not found

, Thank you again。

KunPengRen commented 1 year ago

seems you lack of automake libtoolize

yogesa commented 1 year ago

seems you lack of automake libtoolize

Thank you , I have made success.