mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8290391: Reduce runtime of java.util package microbenchmarks
Reviewed-by: rriggs, redestad
This commit is contained in:
parent
bbc57483ce
commit
2cb659e7f4
16 changed files with 90 additions and 104 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue