Giter Club home page Giter Club logo

dsa-bench-c's Introduction

yet another DSA measurement tool

the responder simply publishes bunch of messages periodically. DSLink at the responder adds timestamp to the message. the requester subscribes the messages and recoreds the timestamp with the time at receiving. the requester finishes to subscribe until the message counter reaches the specified number, or the number of messages specified are received.

Preparation

before you build this tool, you have to make the DSLink SDK C. See README.md for detail.

Briefly, you just clone the SDK, and type ./tools/build.sh.

% git clone http://github.com/IOT-DSA/sdk-dslink-c.git
% cd sdk-dslink-c
% ./tools/build.sh

how to build

To get the source code of this tool, you just clone it like below.

% git clone http://github.com/tanupoo/dsa-bench-c.git
% cd dsa-bench-c

You have to clone the smelt library to the current directory. If you don't want to do so, you have to modify Makefile.

% git clone http://github.com/tanupoo/smelt.git

You also have to set the full path to the DSLink SDK directory into DSLINK_SDK_DIR.

e.g.
% export DSLINK_SDK_DIR=/opt/dsa/sdk-dslink-c

Then, make it.

% make

how to run

don't forget to set LD_LIBRARY_PATH like below.

e.g.
% export LD_LIBRARY_PATH=$DSLINK_SDK_DIR/build:./smelt
  • responder

    % ./pub -h Usage: pub [OPTIONS] -B,--broker=url set the broker URL. (required) e.g. http://dsa-broker.example.com/conn -D,--dslink=string set the dslink name of this. (default:pub) -l,--log=level set the log level. (info,none,..., default:info) -s,--size=size set the size in bytes of the value. (default:40) -i,--interval=num set the interval in msec to update. (default:1000) -m,--max-count=num set the max value of the counter. (default:10) i.e. how many messages to be sent. -n,--node=string set the dslink name of this. (default:test_node) -d,--debug increase verbosity. -h,--help show this help menu.

    e.g. % ./pub -B http://1.1.3.142/conn -d

  • requester

    % ./sub -h Usage: sub [OPTIONS] -B,--broker=url set the broker URL. (required) e.g. http://dsa-broker.example.com/conn -D,--dslink=string set the dslink name of this. (default:sub) -l,--log=level set the log level. (info,none,..., default:info) -m,--max-count=num set the max value of the counter. (default:10) see -p option also. -p,--policy=num set the policy to decide whether to finish the measurement. (default:1) 0: counter in the message reaches. 1: the number of received messages. -n,--node=string set the node name to be subscribed. (default:/downstream/pub/test_node) -q,--qos=num set the level of the QoS. (default:1) -d,--debug increase verbosity. -h,--help show this help menu.

    e.g. % ./sub -B http://1.1.3.142/conn -d

dsa-bench-c's People

Contributors

tanupoo avatar

Watchers

 avatar 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.