- Sort Score
- Num 10 results
- Language All
Results 1 - 6 of 6 for CollectionBenchmarkSampleData (0.23 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
* * @author Nicholaus Shupe */ @NullUnmarked class CollectionBenchmarkSampleData { private final boolean isUserTypeFast; private final SpecialRandom random; private final double hitRate; private final int size; private final Set<Element> valuesInSet; private final Element[] queries; CollectionBenchmarkSampleData(int size) { this(true, new SpecialRandom(), 1.0, size); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
* * @author Nicholaus Shupe */ @NullUnmarked class CollectionBenchmarkSampleData { private final boolean isUserTypeFast; private final SpecialRandom random; private final double hitRate; private final int size; private final Set<Element> valuesInSet; private final Element[] queries; CollectionBenchmarkSampleData(int size) { this(true, new SpecialRandom(), 1.0, size); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 4.2K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/SetContainsBenchmark.java
private SetImpl impl; // the following must be set during setUp private Element[] queries; private Set<Element> setToTest; @BeforeExperiment void setUp() { CollectionBenchmarkSampleData sampleData = new CollectionBenchmarkSampleData(isUserTypeFast, random, hitRate, size); this.setToTest = (Set<Element>) impl.create(sampleData.getValuesInSet()); this.queries = sampleData.getQueries(); } @Benchmark
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.5K bytes - Click Count (0) -
android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java
Map<Element, Element> map; CollectionBenchmarkSampleData elems; @Param({"0", "1", "100", "10000"}) int elements; @BeforeExperiment public void prepareContents() throws Exception { mapsImpl = mapEnums.get(implName); elems = new CollectionBenchmarkSampleData(elements); contents = new HashMap<>(); for (Element key : elems.getValuesInSet()) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 3.4K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java
@Param({"ImmutableSetImpl", "HashSetImpl"}) private SetImpl impl; // the following must be set during setUp private CollectionBenchmarkSampleData sampleData; @BeforeExperiment void setUp() { sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size); } @Benchmark int creation(int reps) { int x = 0; for (int i = 0; i < reps; i++) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 1.8K bytes - Click Count (0) -
guava-tests/benchmark/com/google/common/collect/MapBenchmark.java
private Element[] queries; private Map<Element, Element> mapToTest; private Collection<Element> values; @BeforeExperiment void setUp() { CollectionBenchmarkSampleData sampleData = new CollectionBenchmarkSampleData(isUserTypeFast, random, hitRate, size); if (sortedData) { List<Element> valueList = new ArrayList<>(sampleData.getValuesInSet()); sort(valueList);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue May 13 17:27:14 GMT 2025 - 7.8K bytes - Click Count (0)