<s> from __future__ import print_function <EOL> """<STR_LIT>""" <EOL> def main ( ) : <EOL> import shutil <EOL> import tempfile <EOL> import warnings <EOL> from pandas import Series <EOL> from vbench . api import BenchmarkRunner <EOL> from suite import ( REPO_PATH , BUILD , DB_PATH , PREPARE , <EOL> dependencies , benchmarks ) <EOL> from memory_profiler import memory_usage <EOL> warnings . filterwarnings ( '<STR_LIT:ignore>' , category = FutureWarning ) <EOL> try : <EOL> TMP_DIR = tempfile . mkdtemp ( ) <EOL> runner = BenchmarkRunner ( <EOL> benchmarks , REPO_PATH , REPO_PATH , BUILD , DB_PATH , <EOL> TMP_DIR , PREPARE , always_clean = True , <EOL> module_dependencies = dependencies ) <EOL> results = { } <EOL> for b in runner . benchmarks : <EOL> k = b . name <EOL> try : <EOL> vs = memory_usage ( ( b . run , ) ) <EOL> v = max ( vs ) <EOL> results [ k ] = v <EOL> except Exception as e : <EOL> print ( "<STR_LIT>" % k ) <EOL> print ( str ( e ) ) <EOL> s = Series ( results ) <EOL> s . sort ( ) <EOL> print ( ( s ) ) <EOL> finally : <EOL> shutil . rmtree ( TMP_DIR ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> main ( ) </s>
