You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2021/12/13 11:46:50 UTC

[GitHub] [beam] KhaninArtur commented on a change in pull request #16199: [BEAM-13438][Playground] Update precommit task to run benchmarks

KhaninArtur commented on a change in pull request #16199:
URL: https://github.com/apache/beam/pull/16199#discussion_r767658832



##########
File path: playground/backend/build.gradle.kts
##########
@@ -51,6 +51,34 @@ task("test") {
   }
 }
 
+task("benchmarksForPrecompileObjects") {
+  group = "verification"
+  description = "Run benchmarks for recompiled objects"
+  doLast {
+    exec {
+      executable("go")
+      args("test", "-bench", ".", "-benchmem", "./internal/cloud_bucket/...")
+    }
+  }
+}
+
+task("benchmarksForCodeProcessing") {

Review comment:
       ```suggestion
   task("benchmarkCodeProcessing") {
   ```

##########
File path: playground/backend/build.gradle.kts
##########
@@ -51,6 +51,34 @@ task("test") {
   }
 }
 
+task("benchmarksForPrecompileObjects") {
+  group = "verification"
+  description = "Run benchmarks for recompiled objects"

Review comment:
       ```suggestion
     description = "Run benchmarks for precompiled objects"
   ```

##########
File path: playground/backend/build.gradle.kts
##########
@@ -51,6 +51,34 @@ task("test") {
   }
 }
 
+task("benchmarksForPrecompileObjects") {

Review comment:
       ```suggestion
   task("benchmarkPrecompiledObjects") {
   ```

##########
File path: playground/backend/build.gradle.kts
##########
@@ -51,6 +51,34 @@ task("test") {
   }
 }
 
+task("benchmarksForPrecompileObjects") {
+  group = "verification"
+  description = "Run benchmarks for recompiled objects"
+  doLast {
+    exec {
+      executable("go")
+      args("test", "-bench", ".", "-benchmem", "./internal/cloud_bucket/...")
+    }
+  }
+}
+
+task("benchmarksForCodeProcessing") {
+  group = "verification"
+  description = "Run benchmarks for code processing"
+  doLast {
+    exec {
+      executable("go")
+      args("test", "-run=^$", "-bench", ".", "-benchmem", "./internal/code_processing/...")
+    }
+  }
+}
+
+task("benchmarks") {

Review comment:
       ```suggestion
   task("benchmark") {
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@beam.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org