- Sort Score
- Result 10 results
- Languages All
Results 1 - 6 of 6 for getValuesInSet (0.14 sec)
-
guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java
} @Benchmark int creation(int reps) { int x = 0; for (int i = 0; i < reps; i++) { x ^= System.identityHashCode(impl.create(sampleData.getValuesInSet())); } return x; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MapsMemoryBenchmark.java
public void prepareContents() throws Exception { mapsImpl = mapEnums.get(implName); elems = new CollectionBenchmarkSampleData(elements); contents = Maps.newHashMap(); for (Element key : elems.getValuesInSet()) { contents.put(key, key); } map = mapsImpl.create(contents); } @Benchmark @Footprint(exclude = Element.class) public Map<Element, Element> create() throws Exception {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 3.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java
@BeforeExperiment void setUp() { CollectionBenchmarkSampleData sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size); setToTest = (Set<Element>) impl.create(sampleData.getValuesInSet()); } @Benchmark int iteration(int reps) { int x = 0; for (int i = 0; i < reps; i++) { for (Element y : setToTest) { x ^= System.identityHashCode(y); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java
@BeforeExperiment void setUp() { CollectionBenchmarkSampleData sampleData = new CollectionBenchmarkSampleData(true, random, 0.8, size); setToTest = (Set<Element>) impl.create(sampleData.getValuesInSet()); } @Benchmark int iteration(int reps) { int x = 0; for (int i = 0; i < reps; i++) { for (Element y : setToTest) { x ^= System.identityHashCode(y); } }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
this.random = checkNotNull(random); this.hitRate = hitRate; this.size = size; this.valuesInSet = createData(); this.queries = createQueries(valuesInSet, 1024); } Set<Element> getValuesInSet() { return valuesInSet; } Element[] getQueries() { return queries; } private Element[] createQueries(Set<Element> elementsInSet, int numQueries) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java
this.random = checkNotNull(random); this.hitRate = hitRate; this.size = size; this.valuesInSet = createData(); this.queries = createQueries(valuesInSet, 1024); } Set<Element> getValuesInSet() { return valuesInSet; } Element[] getQueries() { return queries; } private Element[] createQueries(Set<Element> elementsInSet, int numQueries) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 4.1K bytes - Viewed (0)