Coder Social home page Coder Social logo

benchmark-clients's Introduction

benchmark-clients

A Command line tool base on https://www.eclipse.org/leshan/ to simulate a fleet of LWM2M clients.

Get the last version of benchmark-clients-*.jar.

To launch it :

`java -jar benchmark-clients-*.jar -u coap://leshan.eclipseprojects.io`

(Please ๐Ÿ™! Do not use this tool to kill(Dos) the leshan sandbox ๐Ÿ˜…)

Here is the command option :

Usage: leshan-clients-launcher [[-g] [--graphite-url=<serverAddress>]
                               [--graphite-polling-period=<pollingPeriodInSec>]]
                                [-bfhrV] [-c=<communicationPeriodInSeconds>]
                               [-d=<durationInSeconds>] [-e=<endpointPattern>]
                               [-i=<pskIdPattern>] [-k=<pskKeyPattern>]
                               [-n=<nbClients>] [-s=<startTime>] -u=<serverURL>
                               [-a=<String=String>]...
Launch several LWM2M clients. CoAP and CoAPs with PSK is supported
  -u, --server-url=<serverURL>
                          URL of the LWM2M Server or LWM2M bootstrap server if
                            -b option is used, e.g: coap://localhost:5683. Use
                            coaps to use PSK.
  -n, --number-of-client=<nbClients>
                          Number of clients to simulate.
                          Default: 1 client.
  -s, --start-time=<startTime>
                          Time to start all clients in seconds.
                          Default: number-of-client*3 seconds.
  -c, --communication-period=<communicationPeriodInSeconds>
                          Number of time between 2 update requests in seconds.
                          Default: 60 seconds.
  -b, --bootstrap         Use this option to bootstrap instead of register.
  -r, --reconnect-on-update
                          Try to resume connection when it's possible.
  -f, --no-resume         Do not try to resume session always do a full
                            handshake.
  -d, --duration=<durationInSeconds>
                          Duration of the simulation in seconds.
                          Default: no limit.
  -e, --endpoint-pattern=<endpointPattern>
                          A String.format pattern used to create the client
                            endpoint name from this index number.
                          Default: LESHAN%08d.
  -i, --pskid-pattern=<pskIdPattern>
                          A String.format pattern used to create the psk
                            identity from this index number.
                          Default: use --endpoint-pattern.
  -k, --pskkey-pattern=<pskKeyPattern>
                          A String.format pattern used to create the psk
                            identity from this index number. Value must be an
                            Hexadecimal String.
                          Default 1234567890ABCDEF%08X
  -a, --additional-attributes=<String=String>
                          Additional attribute use at registration.
  -g, --graphite-report   Report to graphite server.
      --graphite-url=<serverAddress>
                          Url of graphite server.
                          Default: "localhost/127.0.0.1:2003".
      --graphite-polling-period=<pollingPeriodInSec>
                          Polling period to push data to graphite in seconds.
                          Default: 5 seconds.
  -h, --help              Show this help message and exit.
  -V, --version           Print version information and exit.

You can report stats on graphite.
Using the ugly default UI, this looks like this :
graphite_leshan

To build it :

mvn clean install

then run it :

java -jar target/benchmark-clients-*-SNAPSHOT-jar-with-dependencies.jar -u coap://leshan.eclipseprojects.io

benchmark-clients's People

Contributors

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