Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,10 @@ jobs:
distribution: temurin
java-version: '17'
- uses: gradle/actions/setup-gradle@9c971963bec38e04b3d30dcc455b5382be2fdbfb # v6.3.0
- name: Test benchmark scripts
run: |
python3 scripts/benchmark_comparison_test.py
python3 scripts/validate_benchmark_smoke_test.py
- name: Build JVM, Android, web, Linux, and Android Native
run: >-
./gradlew
:kflate:koverVerifyJvm
:kflate:jvmBenchmarkSmokeBenchmark
:kflate:linuxX64BenchmarkSmokeBenchmark
:kflate:wasmJsBenchmarkSmokeBenchmark
:kflate:compileAndroidMain
:kflate:compileKotlinJs
:kflate:compileKotlinWasmJs
Expand All @@ -37,10 +30,6 @@ jobs:
:kflate:compileKotlinAndroidNativeArm64
:kflate:compileKotlinAndroidNativeX64
:kflate:compileKotlinAndroidNativeX86

- name: Validate benchmark smoke reports
run: python3 scripts/validate_benchmark_smoke.py

apple:
runs-on: macos-latest
steps:
Expand Down
4 changes: 0 additions & 4 deletions .github/workflows/deploy-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ jobs:

- uses: gradle/actions/setup-gradle@v4

- name: Validate published benchmark snapshot
run: python3 -m json.tool performance/latest.json > /dev/null

- name: Build WASM + assemble demo
run: |
chmod +x gradlew
Expand All @@ -40,7 +37,6 @@ jobs:
run: |
mkdir -p deploy
cp -R web-demo/build/webDemo/. deploy/
cmp performance/latest.json deploy/benchmark-results.json

- name: Deploy to gh-pages branch
uses: peaceiris/actions-gh-pages@v4
Expand Down
6 changes: 0 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,3 @@ AGENTS.md
.impeccable/
DESIGN.md
design.md
performance/.benchmark.lock
kflate/performance/benchmark-metadata.jsonl
performance/kompress-baseline/
performance/smoke-runs/
performance/kompress-baseline/*/smoke.json
performance/kompress-baseline/*/smoke-raw/
205 changes: 0 additions & 205 deletions BENCHMARKING.md

This file was deleted.

14 changes: 12 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,19 @@ try {
}
```

## Benchmarks
## Tests and coverage

Correctness tests are separate from the `kotlinx-benchmark` suite. See [BENCHMARKING.md](BENCHMARKING.md) for JVM, Linux Native, and Wasm commands, corpus definitions, and result interpretation.
Run unit tests and verify 100% instruction and branch coverage:

```sh
./gradlew :kflate:jvmTest :kflate:koverVerifyJvm
```

Generate the HTML coverage report:

```sh
./gradlew :kflate:koverHtmlReportJvm
```

## License

Expand Down
1 change: 0 additions & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,5 @@ plugins {
alias(libs.plugins.android.kmp.library).apply(false)
alias(libs.plugins.maven.publish).apply(false)
alias(libs.plugins.android.application).apply(false)
alias(libs.plugins.benchmark).apply(false)
alias(libs.plugins.kover).apply(false)
}
5 changes: 0 additions & 5 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,15 @@ kotlin = "2.3.21"
agp = "9.2.0"
maven-publish = "0.36.0"
io = "0.9.0"
benchmark = "0.4.16"
kompress = "1.4.2"
kover = "0.9.9"

[libraries]
kotlinx-io = { module = "org.jetbrains.kotlinx:kotlinx-io-core", version.ref = "io" }
kotlinx-benchmark-runtime = { module = "org.jetbrains.kotlinx:kotlinx-benchmark-runtime", version.ref = "benchmark" }
kompress-core = { module = "dev.karmakrafts.kompress:kompress-core", version.ref = "kompress" }

[plugins]

multiplatform = { id = "org.jetbrains.kotlin.multiplatform", version.ref = "kotlin" }
android-kmp-library = { id = "com.android.kotlin.multiplatform.library", version.ref = "agp" }
maven-publish = { id = "com.vanniktech.maven.publish", version.ref = "maven-publish" }
android-application = { id = "com.android.application", version.ref = "agp" }
benchmark = { id = "org.jetbrains.kotlinx.benchmark", version.ref = "benchmark" }
kover = { id = "org.jetbrains.kotlinx.kover", version.ref = "kover" }
Loading