Keep native and JS collection benchmarks up-to-date
This makes sure that the benchmarks can still be run manually.
Test: n/a
Change-Id: Iffeaeed33b0f8cb4e18e864cfb3699093e9d3eaf
diff --git a/collection/collection-benchmark-native/README.md b/collection/collection-benchmark-native/README.md
index 98e16f7..4df3b6b 100644
--- a/collection/collection-benchmark-native/README.md
+++ b/collection/collection-benchmark-native/README.md
@@ -5,16 +5,16 @@
To build, run in the collection project root:
- ./gradlew :collection:collection-benchmark-native:assemble
+ ./gradlew --no-configuration-cache -Pandroidx.github.build=true :collection:collection-benchmark-native:assemble
Then execute the resulting binary at:
- ../out/collection-playground/collection-playground/collection/collection-benchmark-native/build/install/main/debug/collection-benchmark-native
+ ../../out/androidx/collection/collection-benchmark-native/build/exe/main/debug/collection-benchmark-native
The output will look something like this:
```
-Running ../out/collection-playground/collection-playground/collection/collection-benchmark-native/build/install/main/debug/lib/collection-benchmark-native
+Running ../../out/collection-playground/collection-playground/collection/collection-benchmark-native/build/install/main/debug/lib/collection-benchmark-native
Run on (12 X 2900 MHz CPU s)
CPU Caches:
L1 Data 32 KiB (x6)
diff --git a/collection/collection-benchmark-native/build.gradle b/collection/collection-benchmark-native/build.gradle
index c06255f..d5daae3 100644
--- a/collection/collection-benchmark-native/build.gradle
+++ b/collection/collection-benchmark-native/build.gradle
@@ -21,7 +21,7 @@
apply plugin: "cpp-application"
def COLLECTION_KMP_FRAMEWORK_NAME = 'CollectionKMP'
- def FRAMEWORK_TASK = ':collection:collection2:linkReleaseFrameworkMacosX64'
+ def FRAMEWORK_TASK = ':collection2:collection2:linkReleaseFrameworkMacosX64'
tasks.withType(CppCompile) {
def frameworkPath = tasks.getByPath(FRAMEWORK_TASK).outputs.files.singleFile.toString()