-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add benchmark comparison between cosid and leaf to workflows (#23)
Add benchmark comparison between cosid and leaf to workflows
- Loading branch information
Showing
5 changed files
with
118 additions
and
4 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,13 +1,27 @@ | ||
# | ||
# Copyright [2021-present] [ahoo wang <[email protected]> (https://github.com/Ahoo-Wang)]. | ||
# 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. | ||
# | ||
|
||
## :::::: WARNING :::::: | ||
## https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | ||
## ::::::::::::::::::::: | ||
## 因受到 GitHub Runner 资源限制,运行在 GitHub Runner 中的基准测试与真实环境基准测试对比有非常大的差距(近2倍), | ||
## 但是对于运行在同一环境配置资源情况下(都运行在 GitHub Runner),进行 commit 前后的基准对比、以及第三方库的对比依然是有价值。 | ||
## ::::::::::::::::::::: | ||
## Due to the resource constraints of GitHub runner, the benchmark running in GitHub runner is very different from the benchmark in the real environment (nearly twice), | ||
## However, it is still valuable to compare the benchmark before and after commit and the third-party library when running in the same environment and configuring resources (both running in GitHub runner). | ||
## ::::::::::::::::::::: | ||
|
||
name: Benchmark Test | ||
name: Benchmark CosId Test | ||
on: [ push ] | ||
jobs: | ||
cosid-core-benchmark: | ||
|
@@ -79,7 +93,7 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Start Mysql | ||
run: sudo /etc/init.d/mysql start | ||
run: sudo /etc/init.d/mysql start | ||
|
||
- name: Checkout | ||
uses: actions/checkout@master | ||
|
@@ -97,4 +111,3 @@ jobs: | |
|
||
- name: CosId-Jdbc | ||
run: gradle cosid-jdbc:clean cosid-jdbc:jmh | ||
|
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,70 @@ | ||
# | ||
# Copyright [2021-present] [ahoo wang <[email protected]> (https://github.com/Ahoo-Wang)]. | ||
# 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. | ||
# | ||
|
||
## :::::: WARNING :::::: | ||
## https://docs.github.com/en/actions/using-github-hosted-runners/about-github-hosted-runners#supported-runners-and-hardware-resources | ||
## ::::::::::::::::::::: | ||
## 因受到 GitHub Runner 资源限制,运行在 GitHub Runner 中的基准测试与真实环境基准测试对比有非常大的差距(近2倍), | ||
## 但是对于运行在同一环境配置资源情况下(都运行在 GitHub Runner),进行 commit 前后的基准对比、以及第三方库的对比依然是有价值。 | ||
## ::::::::::::::::::::: | ||
## Due to the resource constraints of GitHub runner, the benchmark running in GitHub runner is very different from the benchmark in the real environment (nearly twice), | ||
## However, it is still valuable to compare the benchmark before and after commit and the third-party library when running in the same environment and configuring resources (both running in GitHub runner). | ||
## ::::::::::::::::::::: | ||
|
||
name: Benchmark VS Test | ||
on: [ push ] | ||
jobs: | ||
# WARNING:中央仓库没有找到美团官方提供的Jar!!! | ||
# git clone https://github.com/Meituan-Dianping/Leaf | ||
# mvn install -Dmaven.test.skip=true | ||
benchmark-vs-leaf: | ||
name: CosId VS Leaf | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Leaf | ||
uses: actions/checkout@master | ||
with: | ||
repository: Meituan-Dianping/Leaf | ||
|
||
# - name: Cache local Maven repository | ||
# id: cache-maven-repo | ||
# uses: actions/cache@v2 | ||
# with: | ||
# path: ~/.m2/repository | ||
# key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | ||
# restore-keys: | | ||
# ${{ runner.os }}-maven- | ||
|
||
- name: Set up JDK 8 | ||
uses: actions/setup-java@v2 | ||
with: | ||
java-version: '8' | ||
distribution: 'adopt' | ||
server-id: github | ||
settings-path: ${{ github.workspace }} | ||
|
||
- name: Install Leaf Package | ||
run: mvn install -Dmaven.test.skip=true | ||
|
||
- name: Start Mysql | ||
run: sudo /etc/init.d/mysql start | ||
|
||
- name: Checkout CosId | ||
uses: actions/checkout@master | ||
|
||
- name: Init Benchmark-Db | ||
run: mysql -vvv -h localhost -uroot -proot < cosid-benchmark/src/jmh/init/init-script.sql | ||
|
||
- name: Benchmark Test | ||
working-directory: cosid-benchmark | ||
run: gradle clean jmh |
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,3 +1,16 @@ | ||
# | ||
# Copyright [2021-present] [ahoo wang <[email protected]> (https://github.com/Ahoo-Wang)]. | ||
# 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. | ||
# | ||
|
||
name: Document Build and Deploy | ||
on: [push] | ||
jobs: | ||
|
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,3 +1,16 @@ | ||
# | ||
# Copyright [2021-present] [ahoo wang <[email protected]> (https://github.com/Ahoo-Wang)]. | ||
# 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. | ||
# | ||
|
||
name: Integration Test | ||
on: [ push ] | ||
jobs: | ||
|
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