This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo-benchmark.git
The following commit(s) were added to refs/heads/master by this push:
new 0bcf0e5 Intergration benchmark (#24)
0bcf0e5 is described below
commit 0bcf0e5f9c536ca6575fbd2107de18f22fa804be
Author: WenChen <[email protected]>
AuthorDate: Fri Sep 30 14:36:01 2022 +0800
Intergration benchmark (#24)
* Add fastjson2 bench
* fixed fastjson、fastjson2 classCastException
* add prepare.sh to replace dubbo.version
* add prepare.sh to replace dubbo.version+1
* add prepare.sh to replace dubbo.version+2
* add prepare.sh to replace dubbo.version+3
* add prepare.sh to replace dubbo.version+4
Co-authored-by: Albumen Kevin <[email protected]>
---
.../src/main/java/org/apache/dubbo/benchmark/Client.java | 2 ++
prepare.sh | 14 ++++++++++++++
2 files changed, 16 insertions(+)
diff --git a/client-base/src/main/java/org/apache/dubbo/benchmark/Client.java
b/client-base/src/main/java/org/apache/dubbo/benchmark/Client.java
index 174abfb..ad7c1ce 100644
--- a/client-base/src/main/java/org/apache/dubbo/benchmark/Client.java
+++ b/client-base/src/main/java/org/apache/dubbo/benchmark/Client.java
@@ -101,6 +101,8 @@ public class Client extends AbstractClient {
Options opt;
ChainedOptionsBuilder optBuilder = new OptionsBuilder()
.include(Client.class.getSimpleName())
+ .exclude(ClientPb.class.getSimpleName())
+ .exclude(ClientGrpc.class.getSimpleName())
.warmupIterations(warmupIterations)
.warmupTime(TimeValue.seconds(warmupTime))
.measurementIterations(measurementIterations)
diff --git a/prepare.sh b/prepare.sh
new file mode 100755
index 0000000..594ba3e
--- /dev/null
+++ b/prepare.sh
@@ -0,0 +1,14 @@
+#!/usr/bin/env bash
+
+DUBBO_VERSION=$1
+
+echo "=====before replace====="
+cat ./pom.xml
+
+#get old version
+OLD_VERSION=`awk
'/<dubbo.version>[^<]+<\/dubbo.version>/{gsub(/<dubbo.version>|<\/dubbo.version>/,"",$1);print
$1}' ./pom.xml | uniq`
+s="s/<dubbo.version>$OLD_VERSION<\/dubbo.version>/<dubbo.version>$DUBBO_VERSION<\/dubbo.version>/g"
+sed -i $s ./pom.xml
+
+echo "=====after replace====="
+cat ./pom.xml