Skip to content

Commit

Permalink
Experiment: Prepare TPCx-AI
Browse files Browse the repository at this point in the history
  • Loading branch information
perdelt committed May 3, 2024
1 parent fe77357 commit fe85150
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions bexhoma/experiments.py
Original file line number Diff line number Diff line change
Expand Up @@ -2041,3 +2041,48 @@ def __init__(self,
)
self.storage_label = 'example'


"""
############################################################################
TPCx-AI
############################################################################
"""

class tpcxai(default):
"""
Class for defining an TPCx-AI experiment.
This sets
* the folder to the experiment - including query file and schema informations per dbms
* name and information about the experiment
* additional parameters - here SF (the scaling factor)
"""
def __init__(self,
cluster,
code=None,
queryfile = 'queries-tpcxai.config',
SF = '100',
num_experiment_to_apply = 1,
timeout = 7200,
script=None
#detached=False
):
default.__init__(self, cluster, code, num_experiment_to_apply, timeout)#, detached)
if script is None:
script = 'SF'+str(SF)+'-index'
self.set_experiment(volume='tpcxai')
self.set_experiment(script=script)
self.cluster.set_experiments_configfolder('experiments/tpcxai')
parameter.defaultParameters = {'SF': str(SF)}
self.set_additional_labels(SF=SF)
self.set_queryfile(queryfile)
self.set_workload(
name = 'TPCx-AI Queries SF='+str(SF),
info = 'This experiment performs some TPCx-AI inspired queries.'
)
self.storage_label = 'tpcxai-'+str(SF)
def set_queries_full(self):
self.set_queryfile('queries-tpcxai.config')
def set_queries_profiling(self):
self.set_queryfile('queries-tpcxai-profiling.config')

0 comments on commit fe85150

Please sign in to comment.