8290391: Reduce runtime of java.util package microbenchmarks

Reviewed-by: rriggs, redestad
This commit is contained in:
Eric Caspole 2022-07-19 16:30:44 +00:00
parent bbc57483ce
commit 2cb659e7f4
16 changed files with 90 additions and 104 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 2020, Oracle America, Inc.
* Copyright (c) 2020, 2022, Oracle America, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@ -34,6 +34,9 @@ package org.openjdk.micro.bench.java.util;
import org.openjdk.jmh.annotations.*;
import java.util.*;
@Warmup(iterations = 4, time = 2)
@Measurement(iterations = 4, time = 2)
@Fork(value = 3)
public class Base64VarLenDecode {
@State(Scope.Thread)
@ -44,7 +47,6 @@ public class Base64VarLenDecode {
ran = new Random(10101); // fixed seed for repeatability
encoder = Base64.getEncoder();
decoder = Base64.getDecoder();
System.out.println("Do Trial Setup");
}
@Setup(Level.Invocation)