You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by pa...@apache.org on 2020/10/14 04:13:44 UTC

[shardingsphere-benchmark] branch master updated: add shell to commit benchmark result

This is an automated email from the ASF dual-hosted git repository.

panjuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere-benchmark.git


The following commit(s) were added to refs/heads/master by this push:
     new 8a265f6  add shell to commit benchmark result
     new 37b2c0f  Merge pull request #65 from wcsoft/master
8a265f6 is described below

commit 8a265f6975ddf7d3361cf93a548dfa0eb0f00df9
Author: wcsoft <wc...@163.com>
AuthorDate: Wed Oct 14 12:01:31 2020 +0800

    add shell to commit benchmark result
---
 .../shell/statistic/benchmark_result_update.sh     | 47 ++++++++++++++++++++++
 1 file changed, 47 insertions(+)

diff --git a/shardingsphere-benchmark/src/main/resources/shell/statistic/benchmark_result_update.sh b/shardingsphere-benchmark/src/main/resources/shell/statistic/benchmark_result_update.sh
new file mode 100644
index 0000000..2076515
--- /dev/null
+++ b/shardingsphere-benchmark/src/main/resources/shell/statistic/benchmark_result_update.sh
@@ -0,0 +1,47 @@
+benchmark_base_dir="/export/benchmark_project/shardingsphere-benchmark1"
+benchmark_result_base_dir="/export/shardingsphere-benchmark/result"
+cd $benchmark_base_dir
+
+if [ -f ./ss_build_version.log ]; then
+  rm ./ss_build_version.log
+fi
+echo $1 > ./ss_build_version.log
+sleep 2s
+
+ss_version=`head -n +1 ./ss_build_version.log`
+
+if [ $1 == 5.0 ];then
+  echo "5.0"
+  git reset --hard
+  git checkout master
+  git reset --hard
+  git pull origin master
+  cp $benchmark_result_base_dir/shardingsphere-benchmark.xls $benchmark_base_dir/shardingsphere-benchmark
+  cp $benchmark_result_base_dir/shardingsphere-benchmark-avg.xls $benchmark_base_dir/shardingsphere-benchmark
+  git add .
+  git commit -m "update benchmark result"
+  git push origin master
+elif [ $1 == 4.1.1 ];then
+  echo "4.1.1"
+  git reset --hard
+  git checkout 4.1.1
+  git reset --hard
+  git pull origin 4.1.1
+  cp $benchmark_result_base_dir/shardingsphere-benchmark.xls $benchmark_base_dir/shardingsphere-benchmark
+  cp $benchmark_result_base_dir/shardingsphere-benchmark-avg.xls $benchmark_base_dir/shardingsphere-benchmark  
+  git add .
+  git commit -m "update benchmark result"
+  git push origin 4.1.1
+else
+  echo "default version"
+  git reset --hard
+  git checkout master
+  git reset --hard
+  git pull origin master
+  cp $benchmark_result_base_dir/shardingsphere-benchmark.xls $benchmark_base_dir/shardingsphere-benchmark
+  cp $benchmark_result_base_dir/shardingsphere-benchmark-avg.xls $benchmark_base_dir/shardingsphere-benchmark  
+  git add .
+  git commit -m "update benchmark result"
+  git push origin master  
+fi
+