-
-
Notifications
You must be signed in to change notification settings - Fork 513
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
/go/performance/utils/benchmark_runner: done refactoring
- Loading branch information
1 parent
ce21c0b
commit d70b047
Showing
40 changed files
with
397 additions
and
207 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
name: Test Sysbench Runner Utility Works | ||
|
||
on: | ||
pull_request: | ||
branches: [ main ] | ||
paths: | ||
- 'go/**' | ||
- 'integration-tests/**' | ||
|
||
concurrency: | ||
group: ci-sysbench-runner-tests-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
mysql_client_integrations_job: | ||
runs-on: ubuntu-22.04 | ||
name: Test Sysbench Runner | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Copy Dockerfile | ||
run: cp -r ./go/performance/continuous_integration/. . | ||
- name: Test sysbench runner | ||
uses: ./.github/actions/sysbench-runner-tests | ||
#name: Test Sysbench Runner Utility Works | ||
# | ||
#on: | ||
# pull_request: | ||
# branches: [ main ] | ||
# paths: | ||
# - 'go/**' | ||
# - 'integration-tests/**' | ||
# | ||
#concurrency: | ||
# group: ci-sysbench-runner-tests-${{ github.event.pull_request.number || github.ref }} | ||
# cancel-in-progress: true | ||
# | ||
#jobs: | ||
# mysql_client_integrations_job: | ||
# runs-on: ubuntu-22.04 | ||
# name: Test Sysbench Runner | ||
# steps: | ||
# - name: Checkout | ||
# uses: actions/checkout@v3 | ||
# - name: Copy Dockerfile | ||
# run: cp -r ./go/performance/continuous_integration/. . | ||
# - name: Test sysbench runner | ||
# uses: ./.github/actions/sysbench-runner-tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// Copyright 2019-2022 Dolthub, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package benchmark_runner | ||
|
||
import "context" | ||
|
||
type Benchmarker interface { | ||
Benchmark(ctx context.Context) (Results, error) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
// Copyright 2019-2022 Dolthub, Inc. | ||
// | ||
// Licensed under the Apache License, Version 2.0 (the "License"); | ||
// you may not use this file except in compliance with the License. | ||
// You may obtain a copy of the License at | ||
// | ||
// http://www.apache.org/licenses/LICENSE-2.0 | ||
// | ||
// Unless required by applicable law or agreed to in writing, software | ||
// distributed under the License is distributed on an "AS IS" BASIS, | ||
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
// See the License for the specific language governing permissions and | ||
// limitations under the License. | ||
|
||
package benchmark_runner | ||
|
||
import "context" | ||
|
||
type Config interface { | ||
GetRuns() int | ||
GetScriptDir() string | ||
GetNomsBinFormat() string | ||
GetRuntimeOs() string | ||
GetRuntimeGoArch() string | ||
GetServerConfigs() []ServerConfig | ||
Validate(ctx context.Context) error | ||
ContainsServerOfType(server ServerType) bool | ||
} | ||
|
||
type SysbenchConfig interface { | ||
Config | ||
GetTestOptions() []string | ||
GetTestConfigs() []TestConfig | ||
} | ||
|
||
type TpccConfig interface { | ||
Config | ||
GetScaleFactors() []int | ||
} |
16 changes: 15 additions & 1 deletion
16
...rmance/utils/sysbench_runner/constants.go → ...mance/utils/benchmark_runner/constants.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
go/performance/utils/sysbench_runner/dolt.go → ...erformance/utils/benchmark_runner/dolt.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...ils/sysbench_runner/dolt_server_config.go → ...ls/benchmark_runner/dolt_server_config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...rmance/utils/sysbench_runner/dolt_tpcc.go → ...mance/utils/benchmark_runner/dolt_tpcc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...ormance/utils/sysbench_runner/doltgres.go → ...rmance/utils/benchmark_runner/doltgres.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...sysbench_runner/doltgres_server_config.go → ...enchmark_runner/doltgres_server_config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...erformance/utils/sysbench_runner/mysql.go → ...rformance/utils/benchmark_runner/mysql.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...ls/sysbench_runner/mysql_server_config.go → ...s/benchmark_runner/mysql_server_config.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...mance/utils/sysbench_runner/mysql_tpcc.go → ...ance/utils/benchmark_runner/mysql_tpcc.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
16 changes: 15 additions & 1 deletion
16
...ormance/utils/sysbench_runner/postgres.go → ...rmance/utils/benchmark_runner/postgres.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.