Skip to content

Commit

Permalink
Print the number of processors and add a comment in `multiThreadMulti…
Browse files Browse the repository at this point in the history
…ConnectionEach10KLocalTransactions`
  • Loading branch information
ShreckYe committed Nov 19, 2024
1 parent 6eb83a7 commit 263cc5c
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,10 @@ class TransactionBenchmark : WithContainerizedDatabaseBenchmark() {

@Benchmark
fun multiThreadMultiConnectionEach10KLocalTransactions() {
List(Runtime.getRuntime().availableProcessors()) {
// Note that on a device with heterogeneous architecture some threads may finish earlier than others.
List(Runtime.getRuntime().availableProcessors().also {
println("Number of processors: $it")
}) {
thread {
val database = databaseConnect()
repeat(`10K`) { transaction(database) {} }
Expand Down

0 comments on commit 263cc5c

Please sign in to comment.