Skip to content

Commit cb6563a

Browse files
authored
Add Indy to benchmarks (#15236)
1 parent 413e296 commit cb6563a

File tree

4 files changed

+10
-2
lines changed

4 files changed

+10
-2
lines changed

benchmark-overhead/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ Currently, we test:
7979
- no agent versus latest released agent
8080
- no agent versus latest snapshot
8181
- latest release vs. latest snapshot
82+
- latest snapshot with indy enabled
8283

8384
Additional configurations can be created by submitting a PR against the `Configs` class.
8485

benchmark-overhead/src/test/java/io/opentelemetry/agents/Agent.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public class Agent {
2222
new Agent("latest", "latest mainstream release", OTEL_LATEST);
2323
public static final Agent LATEST_SNAPSHOT =
2424
new Agent("snapshot", "latest available snapshot version from main");
25+
public static final Agent LATEST_SNAPSHOT_INDY =
26+
new Agent(
27+
"snapshot-indy",
28+
"latest available snapshot version from main with indy enabled",
29+
null,
30+
Collections.singletonList("-Dotel.javaagent.experimental.indy=true"));
2531

2632
private final String name;
2733
private final String description;

benchmark-overhead/src/test/java/io/opentelemetry/agents/AgentResolver.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public Optional<Path> resolve(Agent agent) throws Exception {
2424
if (Agent.NONE.equals(agent)) {
2525
return Optional.empty();
2626
}
27-
if (Agent.LATEST_SNAPSHOT.equals(agent)) {
27+
if (Agent.LATEST_SNAPSHOT.equals(agent) || Agent.LATEST_SNAPSHOT_INDY.equals(agent)) {
2828
return snapshotResolver.resolve();
2929
}
3030
if (agent.hasUrl()) {

benchmark-overhead/src/test/java/io/opentelemetry/config/Configs.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@ public enum Configs {
1515
TestConfig.builder()
1616
.name("release")
1717
.description("compares no agent, latest stable, and latest snapshot agents")
18-
.withAgents(Agent.NONE, Agent.LATEST_RELEASE, Agent.LATEST_SNAPSHOT)
18+
.withAgents(
19+
Agent.NONE, Agent.LATEST_RELEASE, Agent.LATEST_SNAPSHOT, Agent.LATEST_SNAPSHOT_INDY)
1920
.warmupSeconds(60)
2021
.build());
2122

0 commit comments

Comments
 (0)