- Sort Score
- Result 10 results
- Languages All
Results 341 - 350 of 427 for repo (0.02 sec)
-
android/guava-tests/benchmark/com/google/common/collect/PowerSetBenchmark.java
void setUp() { Set<Integer> set = ContiguousSet.create(Range.closed(1, elements), integers()); powerSet = Sets.powerSet(set); } @Benchmark int iteration(int reps) { int sum = 0; for (int i = 0; i < reps; i++) { for (Set<Integer> subset : powerSet) { for (Integer value : subset) { sum += value; } } } return sum; }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.4K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/hash/HashFunctionBenchmark.java
random.nextBytes(testBytes); } @Benchmark int hasher(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction(); int result = 37; for (int i = 0; i < reps; i++) { result ^= hashFunction.newHasher().putBytes(testBytes).hash().asBytes()[0]; } return result; } @Benchmark int hashFunction(int reps) { HashFunction hashFunction = hashFunctionEnum.getHashFunction();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2.3K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/ExecutionListBenchmark.java
list.add(listener, directExecutor()); } return list.getImpl(); } @Benchmark int addThenExecute_singleThreaded(int reps) { int returnValue = 0; for (int i = 0; i < reps; i++) { list = impl.newExecutionList(); listenerLatch = new CountDownLatch(numListeners); for (int j = 0; j < numListeners; j++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 18 22:10:29 UTC 2024 - 20.5K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/HashMultisetAddPresentBenchmark.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 1.6K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/SetIterationBenchmark.java
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); } } return x; }
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
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); } } return x; }
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/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java
for (int i = 0; i < capacity; i++) { strings[i] = String.valueOf(Math.random()); } } @Benchmark void addsAndRemoves(int reps) { int capacity = this.capacity; BlockingQueue<String> queue = this.queue; String[] strings = this.strings; for (int i = 0; i < reps; i++) { for (int j = 0; j < capacity; j++) { queue.add(strings[j]); } for (int j = 0; j < capacity; j++) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 04 17:37:03 UTC 2017 - 2K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/cache/ChainBenchmark.java
if (i == 0) { head = chain; } } } @SuppressWarnings("GuardedBy") @Benchmark int time(int reps) { int dummy = 0; for (int i = 0; i < reps; i++) { // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently // held segment.removeEntryFromChain(chain, head); dummy += segment.count;
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 17 15:19:38 UTC 2023 - 2.1K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/cache/SegmentBenchmark.java
} checkState(segment.table.length() == capacity); } @SuppressWarnings("GuardedBy") @Benchmark int time(int reps) { int dummy = 0; AtomicReferenceArray<ReferenceEntry<Object, Object>> oldTable = segment.table; for (int i = 0; i < reps; i++) { // TODO(b/145386688): This access should be guarded by 'this.segment', which is not currently // held segment.expand();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Dec 23 16:59:39 UTC 2019 - 2.1K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/SetCreationBenchmark.java
@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++) { 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)