ipc-bench: A UNIX inter-process communication benchmark
Running ipc-bench
You can very easily run ipc-bench on your own machines, and we encourage you to do so and submit the results for inclusion in our open database (see below)!
ipc-bench has only four depencencies:
- a 64-bit machine and OS,
- a compatible OS (currently: Linux 2.6.30+, OpenBSD, Mac OS X; others may work),
- Python 2.5+,
- the NUMA headers (libnuma1 and libnuma-dev packages on Debian/Ubuntu).
Once you have made sure that the dependencies are in place, simply clone our git repository and run ipc-bench:
$ git clone http://github.com/ms705/ipc-bench.git $ cd ipc-bench $ python run.py
ubuntu16.04 系统下面 编译ipc-bench,遇到了不少问题. 没有接触过python, 现在linux 里面python 脚本越来越多了, 简要记录一下:
1. python run.py
Traceback (most recent call last):
File "run.py", line 12, in <module>
from restkit import Resource, BasicAuth
ImportError: No module named restkit
运行run.py, 报错.意思好像是缺少 restkit 这个模块, 用 pip 安装这个模块...
2.sudo pip install restkit
/usr/local/bin/python: No module named pip
系统里面没有这个命令,google 了一下,通过下面方法安装上了 pip
sudo apt-get install python-setuptools
sudo easy_install pip
sudo apt-get update
which pip //to check pip install or not
显示已经存在改命令,重新安装 restkit 模块
3. sudo pip install restkit
http_parser/parser.c:8:22: fatal error: pyconfig.h: No such file or directory
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
又报错了, 缺了一个包, google...
4.sudo apt-get install libpython2.7-dev
安装完这个包后,继续安装...
5.sudo pip install restkit
终于安装完成...
6.python run.py
跑起来了...