Skip to content

Commit

Permalink
Perf baseline 3.5.0, adapt Shakespeare bench to 2022.0.0 release (#3278)
Browse files Browse the repository at this point in the history
The `benchmarks` project is ready to move to the 3.5.x baseline, now
that all 2022.0.0 artifacts are released. That said, the Shakespeare
benchmark still uses deprecated ElasticScheduler, which is removed in
3.5.0.

This commit switches the benchmark to use BoundedElasticScheduler in
addition to upgrading the perf dependencies to 3.5.0.

Fixes #3277.
  • Loading branch information
simonbasle committed Nov 14, 2022
1 parent 4537dae commit bd49521
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
Expand Up @@ -148,6 +148,7 @@ public boolean isDisposed() {
return BOUNDED_SERVICES.get(this) == SHUTDOWN;
}

@SuppressWarnings("deprecation")
@Override
public void start() {
for (;;) {
Expand Down
Expand Up @@ -50,7 +50,7 @@ public static void main(String[] args) throws Exception {

@Setup
public void localSetup() {
scheduler = Schedulers.newElastic("RcParallel");
scheduler = Schedulers.newBoundedElastic(Schedulers.DEFAULT_BOUNDED_ELASTIC_SIZE, Schedulers.DEFAULT_BOUNDED_ELASTIC_QUEUESIZE, "RcParallel");
}

@TearDown
Expand Down
4 changes: 2 additions & 2 deletions gradle/libs.versions.toml
@@ -1,8 +1,8 @@
[versions]
# Baselines, should be updated on every release
baseline-core-api = "3.5.0"
baselinePerfCore = "3.4.24"
baselinePerfExtra = "3.4.8"
baselinePerfCore = "3.5.0"
baselinePerfExtra = "3.5.0"

# Other shared versions
asciidoctor = "3.3.2"
Expand Down

0 comments on commit bd49521

Please sign in to comment.