Skip to content

Instantly share code, notes, and snippets.

@hsadok
hsadok / DPDK.md
Last active October 14, 2019 21:59

Prepare the system

Install the dependencies:

apt install make coreutils gcc gcc-multilib build-essential linux-headers-$(uname -r) git libnuma-dev python

Now we need to set the environment variables to indicate where DPDK is located and what type of environment we are running on.

import timeit
import matplotlib.pyplot as plt
lengths = [2 ** i for i in xrange(15)]
list_time = []
dict_time = []
for l in lengths:
list_time.append(timeit.timeit('%i in d' % (l/2), 'd=range(%i)' % l))