aboutsummaryrefslogtreecommitdiff
path: root/src/allocators/no_falsesharing.py
blob: fee631ceb9039bfa14c7f97d602118ba52f276ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from src.allocators.tcmalloc import TCMalloc
from src.allocators.glibc import Glibc

glibc = Glibc("glibc", color="C1")

glibc_nofs = Glibc("glibc_nofs",
                   patches=["{patchdir}/glibc_2.28_no_passive_falsesharing.patch"],
                   color="C2")

tcmalloc = TCMalloc("tcmalloc", color="C3")

tcmalloc_nofs = TCMalloc("tcmalloc_nofs",
                         patches= ["{patchdir}/tcmalloc_2.7_no_active_falsesharing.patch"],
                         color="C4")

allocators_to_build = [glibc, glibc_nofs, tcmalloc, tcmalloc_nofs]

allocators = {a.name: a.build() for a in allocators_to_build}