Skip to content

Commit ca586dc

Browse files
author
Abduqodiri Qurbonzoda
committed
fixup! Fix the writing benchmarks code snippet
1 parent 4049cbb commit ca586dc

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,8 @@ Note: Kotlin/Wasm is an experimental compilation target for Kotlin. It may be dr
314314

315315
### Writing Benchmarks
316316

317-
After setting up your project and configuring targets, you can start writing benchmarks:
317+
After setting up your project and configuring targets, you can start writing benchmarks.
318+
As an example, let's write a simplified benchmark that tests how fast we can add up numbers in an `ArrayList`:
318319
319320
1. **Create Benchmark Class**: Create a class in your source set where you'd like to add the benchmark. Annotate this class with `@State(Scope.Benchmark)`.
320321

@@ -325,7 +326,7 @@ After setting up your project and configuring targets, you can start writing ben
325326
}
326327
```
327328

328-
2. **Set up Parameters and Variables**: Define variables needed for the benchmark.
329+
2. **Set Up Variables**: Define variables needed for the benchmark.
329330

330331
```kotlin
331332
private val size = 10

0 commit comments

Comments
 (0)