Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
* Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved.
*/

package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs;
package org.openjdk.bench.valhalla.sandbox.corelibs;

import java.util.ConcurrentModificationException;
import java.util.NoSuchElementException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* questions.
*/

package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs;
package org.openjdk.bench.valhalla.sandbox.corelibs;

import java.util.AbstractList;
import java.util.Arrays;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
*/
package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs;
package org.openjdk.bench.valhalla.sandbox.corelibs;

import java.util.List;
import java.util.Iterator;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Setup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* questions.
*/

package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import java.io.IOException;
import java.io.InvalidObjectException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* questions.
*/

package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.BenchmarkMode;
Expand Down Expand Up @@ -55,7 +55,7 @@
*/
@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.MILLISECONDS)
@Fork(1)
@Fork(value = 1, jvmArgsAppend = {"--enable-preview"})
@State(Scope.Thread)
public class HashMapBench {
private IntFunction<Map<Integer, Integer>> mapSupplier;
Expand All @@ -65,8 +65,8 @@ public class HashMapBench {
private int size;

@Param(value = {
"org.openjdk.bench.valhalla.corelibs.mapprotos.HashMap",
// "org.openjdk.bench.valhalla.corelibs.mapprotos.XHashMap",
"org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos.HashMap",
// "org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos.XHashMap",
"java.util.HashMap",
})
private String mapType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;


import org.openjdk.jmh.annotations.Benchmark;
Expand Down Expand Up @@ -48,7 +48,7 @@

@BenchmarkMode(Mode.AverageTime)
@OutputTimeUnit(TimeUnit.NANOSECONDS)
@Fork(1)
@Fork(value = 1, jvmArgsAppend = {"--enable-preview"})
@State(Scope.Thread)
public class HashMapToArray {

Expand All @@ -57,8 +57,8 @@ public class HashMapToArray {


@Param(value = {
"org.openjdk.bench.valhalla.corelibs.mapprotos.HashMap",
// "org.openjdk.bench.valhalla.corelibs.mapprotos.XHashMap",
"org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos.HashMap",
// "org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos.XHashMap",
"java.util.HashMap",
})
private String mapType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import org.openjdk.jmh.annotations.BenchmarkMode;
import org.openjdk.jmh.annotations.Fork;
Expand All @@ -40,7 +40,7 @@
import java.util.concurrent.TimeUnit;
import java.util.stream.IntStream;

@Fork(1)
@Fork(value = 1, jvmArgsAppend = {"--enable-preview"})
@OutputTimeUnit(TimeUnit.MICROSECONDS)
@BenchmarkMode(Mode.AverageTime)
@State(Scope.Thread)
Expand All @@ -61,8 +61,8 @@ public class MapBase {

@Param(value = {
"java.util.HashMap",
"org.openjdk.bench.valhalla.corelibs.mapprotos.HashMap",
// "org.openjdk.bench.valhalla.corelibs.mapprotos.XHashMap",
"org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos.HashMap",
// "org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos.XHashMap",
// "java.util.HashMap0",
})
public String mapType;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Setup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.Setup;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import org.openjdk.jmh.annotations.Benchmark;
import org.openjdk.jmh.annotations.CompilerControl;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* questions.
*/

package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import java.util.AbstractCollection;
import java.util.AbstractSet;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
* questions.
*/

package org.openjdk.bench.valhalla.sandbox.corelibs.corelibs.mapprotos;
package org.openjdk.bench.valhalla.sandbox.corelibs.mapprotos;

import java.io.IOException;
import java.io.InvalidObjectException;
Expand Down