-
Notifications
You must be signed in to change notification settings - Fork 11
/
suite.py
60 lines (45 loc) · 1.39 KB
/
suite.py
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
from vbench.api import Benchmark, GitRepo
from datetime import datetime
import os
modules = ['vb_groupby',]
by_module = {}
benchmarks = []
for modname in modules:
ref = __import__(modname)
by_module[modname] = [v for v in ref.__dict__.values()
if isinstance(v, Benchmark)]
benchmarks.extend(by_module[modname])
for bm in benchmarks:
assert(bm.name is not None)
import getpass
import sys
USERNAME = getpass.getuser()
HOME = os.path.expanduser('~')
try:
import ConfigParser
config = ConfigParser.ConfigParser()
config.readfp(open(os.path.expanduser('~/.vbenchcfg')))
REPO_PATH = config.get('setup', 'repo_path')
REPO_URL = config.get('setup', 'repo_url')
DB_PATH = config.get('setup', 'db_path')
TMP_DIR = config.get('setup', 'tmp_dir')
except:
REPO_PATH = os.path.abspath(os.path.join(os.path.dirname(__file__), "../../../"))
REPO_URL = 'https://github.com/visualfabriq/bquery.git'
DB_PATH = os.path.join(REPO_PATH, 'bquery/benchmarks/vb_suite/benchmarks.db')
TMP_DIR = os.path.join(HOME, 'tmp/vb_bquery')
PREPARE = """
python setup.py clean
"""
BUILD = """
git clone https://github.com/esc/bcolz.git
cd bcolz
git checkout pxd_v3
python setup.py build_ext --inplace
cd ..
export PYTHONPATH=$(pwd)/bcolz:${PYTHONPATH}
python setup.py build_ext --inplace
"""
dependencies = []
START_DATE = datetime(2015, 1, 7)
RST_BASE = 'source'