mirror of
https://github.com/openjdk/jdk.git
synced 2026-06-11 13:05:45 +00:00
Update test/micro/org/openjdk/bench/java/lang/StringEquals.java
Co-authored-by: Andrey Turbanov <turbanoff@gmail.com>
This commit is contained in:
parent
0f585e352a
commit
f3cfd3f1ae
@ -63,7 +63,7 @@ public class StringEquals {
|
||||
|
||||
@Setup
|
||||
public void setup() {
|
||||
if(size > 0) {
|
||||
if (size > 0) {
|
||||
test8 = "a".repeat(size);
|
||||
// NOTE 1: can't do test9 = new String(test8) or they'll share byte
|
||||
// arrays, which improves cache hit rate of the equal-string case
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user