From 848c7f0e4fe3adde77e1cb1e1b4677dd5ef2ca0e Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 30 May 2016 15:08:12 +0200 Subject: [PATCH] benchmark makefile --- configure.ac | 1 + src/Makefile.am | 2 +- src/benchmark/Makefile.am | 22 +++++++++++ src/benchmark/taler-exchange-benchmark | Bin 0 -> 7584 bytes src/benchmark/taler-exchange-benchmark.c | 46 +++++++++++++++++++++++ 5 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 src/benchmark/Makefile.am create mode 100755 src/benchmark/taler-exchange-benchmark create mode 100644 src/benchmark/taler-exchange-benchmark.c diff --git a/configure.ac b/configure.ac index 939e8f7c0..ee3720821 100644 --- a/configure.ac +++ b/configure.ac @@ -452,6 +452,7 @@ AC_CONFIG_FILES([Makefile src/exchange/Makefile src/exchange-tools/Makefile src/exchange-lib/Makefile + src/benchmark/Makefile src/include/Makefile src/json/Makefile src/pq/Makefile diff --git a/src/Makefile.am b/src/Makefile.am index 74956a6ab..a1db78b48 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -22,7 +22,7 @@ pkgcfg_DATA = \ EXTRA_DIST = \ taler.conf -SUBDIRS = include util json $(PQ_DIR) $(BANK_LIB) wire exchangedb exchange exchange-tools +SUBDIRS = include util json $(PQ_DIR) $(BANK_LIB) wire exchangedb exchange exchange-tools benchmark if HAVE_LIBCURL SUBDIRS += exchange-lib else diff --git a/src/benchmark/Makefile.am b/src/benchmark/Makefile.am new file mode 100644 index 000000000..4deb81723 --- /dev/null +++ b/src/benchmark/Makefile.am @@ -0,0 +1,22 @@ +# This Makefile.am is in the public domain +AM_CPPFLAGS = -I$(top_srcdir)/src/include + +if USE_COVERAGE + AM_CFLAGS = --coverage -O0 + XLIB = -lgcov +endif + +bin_PROGRAMS = \ + taler-exchange-benchmark + +taler_exchange_benchmark_SOURCES = \ + taler-exchange-benchmark.c +taler_exchange_benchmark_LDADD = \ + $(LIBGCRYPT_LIBS) \ + -ltalerexchange \ + -ltalerjson \ + -ltalerutil \ + -lgnunetjson \ + -lgnunetcurl \ + -lgnunetutil \ + -ljansson diff --git a/src/benchmark/taler-exchange-benchmark b/src/benchmark/taler-exchange-benchmark new file mode 100755 index 0000000000000000000000000000000000000000..a106ecbc5c9fb6ed6272f363c5a1e4cebbdc0f76 GIT binary patch literal 7584 zcmb7JeQ;FO6~AxyC0X*qCXgru(z+ahK zN-H#?Ake{&R{Nnt9m}+%ooUBT2R}!RpZ%jlQQJ=YhdPP_iuGHm3ftfBzIT^RN}2X% z?w<3z=iGBY-@WIa+`O!}Thlb5l1F$2(f(U>Un>izI+9iq5I!+WG>UUYIf^K2-3lFK zSpk*GP^Ke$DFbfZ203yqFf(Pe%`6k^GFJd0v%aWt`j%)(Iffb{#V3hVm~a)`kupKRo>Xl?xvn=^Lxo;ev5B=!9SP!HcYzoeAyol>X9q=5?CC52QREx!9^y|f~ zC|`j+#rl&mlC7Y1(04Gpk2#G+vYRuuoX}=r_VlkbqgK|6C33cv?O)lMOsA~=@IcZM zrWqSbr_7uk&f2Ca%*%$&HLhM~GMvj0tr+))pO6DeU@(XbtcU?7)s%2AYxicmZ~WQB&p*@%@)rbEee zB%I`?70Y{jmUfzRFqpE$?5u^UaaBKkVyY6R*LpiSOI4`!2sCz7IR<$jeasba1cpx2vIX zRPm$-VldalojY>8e0bUcHiT|XTDSA?$g#RO1%-nn&(*yA$>`oa_66bqOQilY$2~ir zedgVBw1a;>Zcl$qRy<@+mKAIIoSKK6nyk3ziJ4T{x`YNqzEWT9|mJAU?z9Ki2|FFbS7v;A{>=AJ*WAG^95+jh=r+}YLW1KSF!7w&$XiX$&- z3%|&}KJr|{HP@Qo9er=&-qQ35mPxMVBT(HoI-4zW@pv|A*azBl@1j}Y`JJ~zr3*9z z$`#C@lUqQ!j+|(ocTC!iYlODNr%kWY^&MEx0LmJWKRr<>$erl-b^EI>t2S(Xlel!+ zqKoD>p2z*yjx1oC=O0rWazFAhl!aN);rDI#boi@o^LF~NEjs*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MH@ZBBqy$3#5q8lDLbnCnT>pTVndP4yHFN#QGw}1%f1B zTcBPcy=qy;AFuSPix8Ne*s0`|&Sfe7#wh^KE511npEC{zr2nr9b@5SwGpfd?!3$@P z-f-vJgZT{t*SK#D;tpW-_8`6zSiTfNHPjviRr9A|{`LU#y#j(;XrlND8F&6P%=ZCe zH?cpswTg-O6`-%(_0sS{coVp^zeQy*)PJAUwa=){Nno{J8eSh2Y@kFw4Op$0hSx_k zFkkEZ5+_ZLCgA!Yn>wj+Cl`7XO`%*fAhx4R|2c=moYOD$=W$PKR5{I#56DKTx0h3tnEht z>{OV{w1>hIbGKMxr^$b3iX?CyaSh>txwyKMPJUJ-E^WrGlfj`pq zomCwxdpe<2B9SpbVJ`1oy|km(T;1Khc3HpK-?6lJ8O_OnStOTtqkCrzDQ;?85R6&2 znTeQoJfGSa9M~jys}uukPOQy|6Pl%xanVRKnoFAqEk+rs#BF}25MF!xsgPVrcjcYw zcz^By2Qy~;28`%bq|foiP8a$#5iC_R$|0+rFgAuN+u&CGpAt_`YE;T! zRiM1#sK-0?CFng3p0_AismIs|-|@VOsmIvL4ls_y#MARa-c-cn@7ZrUJVzp2OjMd|GZ z&%Ux9o)Ie`;M}W3J*L}`l^*Z@3H$`p~rSqQnrtyfaPqL zcT^NW$*9Y=m`)&*S9^qd3n_3DWz6OHAyw%<=miu2RkE|j={*U(6I?_$DLn?|6i?A( z_?TZ+N}x&>8mIR|d=!5=jUFR8tfR)U9`0>oT)UKakF)nYHig>jG)o;OdbgZAm0p8h ozY?NQv7{x +*/ +/** + * @file src/benchmark/taler-exchange-benchmark.c + * @brief exchange's benchmark + * @author Marcello Stanisci + */ +#include "platform.h" +#include +#include +#include +#include +#include +#include +#include + +/** + * URI under which the exchange is reachable during the benchmark. + */ +#define EXCHANGE_URI "http://localhost:8081/" +/** + + * Main function for the exchange's benchmark. + * + * @param argc expected to be 1 + * @param argv expected to only contain the program name + */ +int +main (int argc, + char * const *argv) +{ + return GNUNET_OK; +}