presto-benchmark-driver/src/main/java/io/prestosql/benchmark/driver/BenchmarkDriver.java/BenchmarkDriver/run
class BenchmarkDriver:    public void run(Suite suite)
    {
        // select queries to run
        List<BenchmarkQuery> queries = suite.selectQueries(this.queries);
        if (queries.isEmpty()) {
            return;
        }

        Map<String, String> properties = new HashMap<>();
        properties.putAll(clientSession.getProperties());
        properties.putAll(suite.getSessionProperties());
        ClientSession session = ClientSession.builder(clientSession)
                .withProperties(properties)
                .build();

        // select schemas to use
        List<BenchmarkSchema> benchmarkSchemas;
        if (!suite.getSchemaNameTemplates().isEmpty()) {
            List<String> schemas = queryRunner.getSchemas(session);
            benchmarkSchemas = suite.selectSchemas(schemas);
        }
        else {
            benchmarkSchemas = ImmutableList.of(new BenchmarkSchema(session.getSchema()));
        }
        if (benchmarkSchemas.isEmpty()) {
            return;
        }

        for (BenchmarkSchema benchmarkSchema : benchmarkSchemas) {
            for (BenchmarkQuery benchmarkQuery : queries) {
                session = ClientSession.builder(session)
                        .withCatalog(session.getCatalog())
                        .withSchema(benchmarkSchema.getName())
                        .build();
                BenchmarkQueryResult result = queryRunner.execute(suite, session, benchmarkQuery);

                resultsStore.store(benchmarkSchema, result);
            }
        }
    }