Coder Social home page Coder Social logo

ndnlite-perf-test's Introduction

Compare the performance between NDN-Lite and NFD

Here are some programs which are used to compare the performace with NDN-Lite's forwarder and NFD.

Install NFD

Both ndn-cxx and NFD are compiled with -O0 by default, which may lead to an unfair comparision. So I install the latest release version 0.6.5 with optimized compiler flag.

The following commands are what I used exactly. I linked OpenSSL manually because it cannot be found automatically on my Mac, and I applied nfdpatch.diff to make NFD-0.6.5 work with Boost-1.69.0. The master branch of ndn-cxx and NFD have fixed this bug.

git clone https://github.com/named-data/ndn-cxx.git --tags
cd ndn-cxx
git checkout ndn-cxx-0.6.5
CXXFLAGS="-O2" ./waf configure --with-openssl=/usr/local/Cellar/openssl/1.0.2r
./waf
sudo ./waf install
cd ..

git clone https://github.com/named-data/NFD.git --recursive --tags
cd NFD
git checkout NFD-0.6.5
CXXFLAGS="-O2" ./waf configure
patch -p1 < ../nfdpatch.diff
./waf
sudo ./waf install
cd ..

Install NDN-Lite

git clone https://github.com/named-data-iot/ndn-iot-package-over-posix.git --recursive
cd ndn-iot-package-over-posix
vim ndn-lite/ndn-constants.h
  :%s/NDN_CONTENT_BUFFER_SIZE 256/NDN_CONTENT_BUFFER_SIZE 2048/g
  :wq
mkdir build
cd build
cmake -DCMAKE_BUILD_TYPE=Release -DDYNAMIC_LIB=YES ..
make -j4
sudo make install

Run the test

To run the NFD producer:

nfd-start
make run-nfd

To run the NDN-Lite producer:

nfd-stop
sudo make run-lite

The NDN-Lite producer and NFD use the same Unix socket file /var/run/nfd.sock, so don't run both at the same time.

To run the consumer:

make run-consumer

ndnlite-perf-test's People

Contributors

zjkmxy avatar

Watchers

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