Exemplo n.º 1
0
#!/usr/bin/env python3

from perf.utils import wait_idleness
from perf.numa import *
from perf.perftool import ipc, stat
import perf; perf.min_version((2,9))

from useful.log import Log, logfilter
from useful.mstring import s
from useful.run import run

from signal import SIGSTOP, SIGCONT, SIGKILL
from subprocess import Popen, DEVNULL
from collections import defaultdict
from itertools import permutations
from statistics import mean
from random import choice
from time import sleep
from os import kill

import argparse
import atexit
import shlex
import sys

BENCHES = "/home/sources/perftest/benches/"
basis = dict(
  # INIT DB: sudo -u postgres pgbench -i
  # pgbench = "sudo -u postgres pgbench -c 20 -s 10 -T 100000",
  # static  = "siege -c 100 -t 666h http://localhost/big_static_file",  # TODO: too CPU consuming,
  # wordpress = "siege -c 100 -t 666h http://localhost/",