aboutsummaryrefslogtreecommitdiff
path: root/src/globalvars.py
blob: 7bf3de75cb52da7d2922fe31722165cdb335bc3d (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
32
import inspect
import os


"""Dict holding facts about the current benchmark run"""
facts = {}

"""Verbosity level -1: quiet, 0: status, 1: info, 2: stdout of subcommands, 3: debug info"""
verbosity = 0

"""Dict holding the allocators to compare"""
allocators = {}

"""File were the allocators definitions are loaded from"""
allocators_file = None

"""Root directory of allocbench"""
allocbenchdir = os.path.dirname(os.path.abspath(inspect.getfile(inspect.currentframe())))
allocbenchdir = os.path.dirname(allocbenchdir)

"""Path of the build directory"""
builddir = "build"

"""Directory were the benchmark results are stored"""
resdir = None

"""Source directory for all benchmarks"""
benchsrcdir = "src/benchmarks"

"""List of available benchmarks"""
benchmarks = [e[:-3] for e in os.listdir(os.path.join(allocbenchdir, benchsrcdir))
              if e[-3:] == ".py" and e != "__init__.py"]