Giter VIP home page Giter VIP logo

edpbench's Introduction

Erlang Distributed Protocol Benchmark

This is a benchmark generator that measures the message and byte transfer rate between Erlang and Java nodes. It uses Erlang Distributed Protocol on the wire and Jinterface package for creating Java node which knows Erlang port mapper (EPMD), data types and its distributed protocol.

Benchmark

  • In order to run this benchmark you need to have Erlang, Java and Gnu Make installed in your machine.
  • Clone this repo into you machine
  • Replace {message_count} and {message_size} with your benchmakr parameters and
  • Execute make MC={message_count} MS={message_size} command in its root

My Results

My machine info:

  • OS: Debian 8
  • RAM: 8 GB
  • CPU: i5-4570 @ 3.20GHz
  • Erlang: R17
  • Java: 1.7

The result:

$ make MC=1000000 MS=1000
==> compiling java code
==> compiling erlang node
==> running java node
==> running erlang node
==> java node startd
==> erlang node started
==> Report:
====> Remote Node: java_node@localhost
====> Remote Process: java_process
====> Msg count: 1000000
====> Msg size (each): 1000 byte
====> Msg size (total): 1.0e3 mbyte
====> Msg rate: 47344.58654185623 msg/sec
====> Transfer rate: 47.34458654185623 mbyte/sec
====> Total time: 21.121739 sec
==> End

Notes

  • Messages are sent synchronously on one thread on each side
  • Java Node acknowledges each Erlang Node message
  • The acknowledgement message is same as the message itself

edpbench's People

Contributors

hamidreza-s avatar

Stargazers

Henrik Lagebrand avatar Roman Heinrich avatar

Watchers

James Cloos avatar  avatar

edpbench's Issues

java_node@localhost is not accessible in Erlang/OTP 18

I get the following error when running the benchmark program (Erlang/OTP 18, Java 1.8.0_77):

==> running java node
==> running erlang node
==> java node startd
==> erlang node started
java_node@localhost is not accessible.
{"init terminating in do_boot",{{badmatch,nok},[{erlang_node,benchmark,3,[{file,"erlang/erlang_node.erl"},{line,26}]},{init,start_it,1,[]},{init,start_em,1,[]}]}}

Crash dump is being written to: erl_crash.dump...done
init terminating in do_boot ()

Here is the crash dump: erl_crash.dump

Warning: erlang:now/0 deprecated in Erlang/OTP 18

I get this warning when running the benchmark program under Erlang/OTP 18:

make MC=1000000 MS=1000                        
==> compiling java code
==> compiling erlang node
erlang/erlang_node.erl:28: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.
erlang/erlang_node.erl:40: Warning: erlang:now/0: Deprecated BIF. See the "Time and Time Correction in Erlang" chapter of the ERTS User's Guide for more information.

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.