- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 132 for 1003 (0.16 sec)
-
android/guava-tests/test/com/google/common/io/FileBackedOutputStreamTest.java
public void testThreshold() throws Exception { testThreshold(0, 100, true, false); testThreshold(10, 100, true, false); testThreshold(100, 100, true, false); testThreshold(1000, 100, true, false); testThreshold(0, 100, false, false); testThreshold(10, 100, false, false); testThreshold(100, 100, false, false); testThreshold(1000, 100, false, false); } private void testThreshold(
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 5.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/GraphMutationTest.java
@RunWith(JUnit4.class) public final class GraphMutationTest { private static final int NUM_TRIALS = 50; private static final int NUM_NODES = 100; private static final int NUM_EDGES = 1000; private static final int NODE_POOL_SIZE = 1000; // must be >> NUM_NODES @Test public void directedGraph() { testGraphMutation(GraphBuilder.directed()); } @Test public void undirectedGraph() {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Fri Aug 18 16:17:46 GMT 2017 - 4.2K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/MinMaxPriorityQueueTest.java
mmHeap.addAll( Lists.newArrayList(1, 20, 1000, 2, 3, 30, 40, 10, 11, 12, 13, 200, 300, 500, 400)); assertTrue("Heap is not intact initially", mmHeap.isIntact()); Iterator<Integer> it = mmHeap.iterator(); assertEquals((Integer) 1, it.next()); assertEquals((Integer) 20, it.next()); assertEquals((Integer) 1000, it.next()); assertEquals((Integer) 2, it.next()); it.remove();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Thu Mar 07 18:34:03 GMT 2024 - 36.1K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBenchmark.java
import java.lang.reflect.Constructor; import java.util.concurrent.BlockingQueue; /** * Benchmarks for {@link Monitor}. * * @author Justin T. Sampson */ public class MonitorBenchmark { @Param({"10", "100", "1000"}) int capacity; @Param({"Array", "Priority"}) String queueType; @Param boolean useMonitor; private BlockingQueue<String> queue; private String[] strings; @BeforeExperiment
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/StreamsBenchmark.java
import java.util.function.Supplier; import java.util.stream.Stream; /** * Test stream operation speed. * * @author Louis Wasserman */ public class StreamsBenchmark { @Param({"1", "10", "100", "1000", "10000"}) private int size; enum CollectionType { ARRAY_LIST(ArrayList::new), LINKED_LIST(LinkedList::new); final Supplier<Collection<Object>> supplier;
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Thu Nov 03 19:39:41 GMT 2016 - 2.8K bytes - Viewed (0) -
android/guava-tests/benchmark/com/google/common/collect/MultisetIteratorBenchmark.java
// TODO(kevinb): generate better test contents for multisets for (int i = 0; sizeRemaining > 0; i++) { // The JVM will return interned values for small ints. Integer value = random.nextInt(1000) + 128; int count = Math.min(random.nextInt(10) + 1, sizeRemaining); sizeRemaining -= count; hashMultiset.add(value, count); linkedHashMultiset.add(value, count); treeMultiset.add(value, count);
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 2.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
*/ @GwtIncompatible // QueuingRemovalListener public void testRemovalNotification_get_basher() throws InterruptedException { int nTasks = 1000; int nThreads = 100; final int getsPerTask = 1000; final int nUniqueKeys = 10000; final Random random = new Random(); // Randoms.insecureRandom(); QueuingRemovalListener<String, String> removalListener = queuingRemovalListener();
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Tue Oct 03 20:10:02 GMT 2023 - 23.2K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/collect/SortedCopyBenchmark.java
* Ordering#sortedCopy} and {@link Ordering#immutableSortedCopy}, as well as for automated code * suggestions. * */ public class SortedCopyBenchmark { @Param({"1", "10", "1000", "1000000"}) int size; // logarithmic triangular @Param boolean mutable; @Param InputOrder inputOrder; enum InputOrder { SORTED { @Override void arrange(List<Integer> list) {
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Mon Dec 04 17:37:03 GMT 2017 - 3.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/cache/PopulatedCachesTest.java
.withValueStrengths(ImmutableSet.copyOf(Strength.values())) .withConcurrencyLevels(ImmutableSet.of(1, 4, 16, 64)) .withMaximumSizes(ImmutableSet.of(400, 1000)) .withInitialCapacities(ImmutableSet.of(0, 1, 10, 100, 1000)) .withExpireAfterWrites( ImmutableSet.of( // DurationSpec.of(500, MILLISECONDS), DurationSpec.of(1, SECONDS), DurationSpec.of(1, DAYS)))
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 15K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java
ListenableFuture<?> future = executor.submit(incrementTask); assertTrue(future.isDone()); assertListenerRunImmediately(future); assertEquals(1, threadLocalCount.get().intValue()); otherThread.join(1000); assertEquals(Thread.State.TERMINATED, otherThread.getState()); Throwable throwable = throwableFromOtherThread.get(); assertNull( "Throwable from other thread: "
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 28.2K bytes - Viewed (0)