summaryrefslogtreecommitdiffhomepage
path: root/test/performance_test/README.md
blob: f0edaea35fbbf04948a28c9744713e0f3f9d14bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Performance Test
===

[Hoofprints](https://github.com/sspies8684/hoofprints) inspired route-server performance test suite

## Prerequisites

Follow the 'Prerequisites' and 'Set up dependencies' section of [Scenario Test](https://github.com/osrg/gobgp/blob/master/test/scenario_test/README.md).

## Create tester container

```shell
$ cd $GOPATH/src/github.com/osrg/gobgp
$ sudo fab -f ./test/lib/base.py make_gobgp_ctn:tag=gobgp
$ sudo fab -f ./test/performance_test/test.py make_tester_ctn:tag=tester,from_image=gobgp
```

## Run test

```shell
$ cd $GOPATH/src/github.com/osrg/gobgp/test/performance_test
$ sudo PYTHONPATH=../ python test.py -t gobgp -n 1000 T1
$ sudo PYTHONPATH=../ python test.py -t quagga -n 1000 T1
```

To test BIRD, pull BIRD docker image first.

```shell
$ docker pull osrg/bird
$ sudo PYTHONPATH=../ python test.py -t bird -n 1000 T1
```