From ef81e9db227b15e56bd9fdf2992b29940b8a6a29 Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Mon, 30 May 2016 18:57:16 +0200 Subject: [PATCH] comments --- src/benchmark/taler-exchange-benchmark | Bin 20440 -> 20776 bytes src/benchmark/taler-exchange-benchmark.c | 17 ++++++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/benchmark/taler-exchange-benchmark b/src/benchmark/taler-exchange-benchmark index 86cb33e398157b1423fab3b7f5ba921844e12929..034b287e4199e4595f327b0479ce365f2bba484f 100755 GIT binary patch delta 8731 zcmZWv3v^Z0wcY2Qd&AB5=KoJ_NJxMLVt_e%X-OL@*hl*^sC`xJ=!=TJn;~^5f})M)&AHDfH+g4_bN8BS zt-bczYp=8SIwyI%UFkTXwC1>KzI!lt&5X7rA$WTPu2>-yG?I7P?QO&T4=_H(9cIa0 zXgi?a0a?fCgMYX?qB35H%0q5%Zu zyr#IeoiS#s*{*$OjP+`Ee1EIk>xQv7;S(RhDx^PAvz6=CBz!`Yuti)-*~SSmg)L@0oo#{;6>O7*c%bQqH`opjcXofCEyUiY{(*sk zU0scy;IH9j(?#!!ZnQ!Slm+4XK>iKdNDns(M}o zbFma%s(K6k#HFgYKLzhn74sXY_gD+j^~N(sPk3_XKG@g{*P1TI2G-r0(Dl6)53LNW z?(c3YZ#ZMPBJwAnMK5gzvR)G~Qzz<_pbKL*UCcSz0OvlwKuxT0^9#cC` z4%};gjO%s7Jy6yNhE{5t{;TX3+eANq#pnbs@E0TKP34=QIN)n$Vg(~jllwcR)QrT_ zR%dwHOq)H(k>H_!%kb>#I=KTpU-K2y+~VNt5L|MP0u*&Z+p!-V7Ql&tGU}bAf#8p2 z-yHPaenxkD8|!5_wOHr|i%h%HQ!FMt)b_xXHf=~$^GypU>3VQE0A_w*A!fceiL6~$ zea+P}4qk1I6#>(3-(<4O*FtHaaZNDm-@07&d5agzML%k41^=6ExhA#N1@C-KCH-BK zBN}_P09~?@8EdBmx0oG2{-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^7gPfvNc$mW}<&v`gOf8pUouqJ_yw-*(WhqlDWHnXU-SS(q#a;f^< z;?>VCt-)pn3rEzR9I{n6iP#PQNg7Dr!uiXG_6{-V&R&fJiiRe z2?-NRN9q(8=JzDktg`oP{qZ-7?W<7z#aZbN7FeUcf0ieViCvF{d7^${)_tM!`+KbZ z)vSzgF4K3gLSMD%>9f;A`4C=;*Q;h{gz|a49Ir12$+h`vyuJ&h{E#27e>6M8!38-< z|9rN`!ACVs53BQpu_QNOefH@^b?67^P@+D+F3X1IXK1b`>hIKLIij#+&(wck=Lvlx z2S;+d{zF}cV^gjWf6=}59;HdItpixy<@(9`tjY}) jLb&lll!trlWU&^%%_lh^+N{93b7 diff --git a/src/benchmark/taler-exchange-benchmark.c b/src/benchmark/taler-exchange-benchmark.c index e1469d348..de17ba31c 100644 --- a/src/benchmark/taler-exchange-benchmark.c +++ b/src/benchmark/taler-exchange-benchmark.c @@ -60,12 +60,20 @@ static struct TALER_EXCHANGE_Handle *exchange; /** * Run the main interpreter loop that performs exchange operations. * - * @param cls contains the `struct InterpreterState` + * @param cls closure for benchmark_run() */ static void benchmark_run (void *cls) { GNUNET_log (GNUNET_ERROR_TYPE_INFO, "benchmark_run() invoked\n"); + GNUNET_log (GNUNET_ERROR_TYPE_INFO, "gotten pool_size of %d\n", pool_size); + + /** + * 1 Pool's size as an option: DONE, TESTED + * 2 Connection to the exchange: DONE, TESTED + * 3 Allocation of large enough memory + * 4 Withdraw + */ } /** @@ -152,12 +160,7 @@ int main (int argc, char * const *argv) { - /** - * 1 Pool's size as an option: DONE - * 2 Connection to the exchange: DONE, NOT TESTED - * 3 Allocation of large enough memory - * 4 Withdraw - */ + GNUNET_log_setup ("taler-exchange-benchmark", "WARNING", NULL);