File: bench.sh

package info (click to toggle)
python-lap 0.5.12-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,696 kB
  • sloc: python: 1,408; cpp: 872; sh: 24; makefile: 3
file content (21 lines) | stat: -rwxr-xr-x 737 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/sh

export PYTHONPATH=$LAPJV_OLD:$PYTHONPATH 

PYTEST_OPTS="-v -s --benchmark-sort=mean --benchmark-columns=mean,min,max,median,rounds,iterations"

if [ ! -e matrix_dense_hard.json ]; then
	pytest $PYTEST_OPTS --benchmark-json=matrix_dense_hard.json matrix_dense_hard.py
fi
if [ ! -e matrix_sparse.json ]; then
	pytest $PYTEST_OPTS --benchmark-json=matrix_sparse.json matrix_sparse.py
fi
if [ ! -e matrix_nnz.json ]; then
	pytest $PYTEST_OPTS --benchmark-json=matrix_nnz.json matrix_nnz.py
fi
if [ ! -e overview_dense.json ]; then
	pytest $PYTEST_OPTS --benchmark-json=overview_dense.json overview_dense.py
fi
if [ ! -e overview_sparse.json ]; then
	pytest $PYTEST_OPTS --benchmark-json=overview_sparse.json overview_sparse.py
fi