/
githubmirror
/
tpcc-postgres
Обзор
Документация
Войти
/
githubmirror
/
tpcc-postgres
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
src/test/java/com/oltpbenchmark/benchmarks/tpch/TestTPCHWorker.java
28 строк
799 B
Tim Veil
Adding Missing Test cases and test case refactoring (#144)
12 апр 2022, 17:07
Не верифицирован
12 апр 2022, 17:07
611b167
Код
Авторство
О чём код?
package com.oltpbenchmark.benchmarks.tpch; import com.oltpbenchmark.WorkloadConfiguration; import com.oltpbenchmark.api.AbstractTestWorker; import com.oltpbenchmark.api.Procedure; import java.util.List; public class TestTPCHWorker extends AbstractTestWorker<TPCHBenchmark> { private static final double SCALE_FACTOR = .001; @Override public List<Class<? extends Procedure>> procedures() { return TestTPCHBenchmark.PROCEDURE_CLASSES; } @Override protected void customWorkloadConfiguration(WorkloadConfiguration workConf) { // let's set the SF even lower than .01 for actual worker tests this.workConf.setScaleFactor(SCALE_FACTOR); } @Override public Class<TPCHBenchmark> benchmarkClass() { return TPCHBenchmark.class; } }