Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for newFacade (0.08 sec)

  1. guava-tests/benchmark/com/google/common/util/concurrent/SingleThreadAbstractFutureBenchmark.java

      @BeforeExperiment
      void setUp() throws Exception {
        notDoneFuture = impl.newFacade();
      }
    
      @Benchmark
      public long timeComplete_Normal(int reps) throws Exception {
        long r = 0;
        List<Facade<Integer>> list = new ArrayList<>(reps);
        for (int i = 0; i < reps; i++) {
          final Facade<Integer> localFuture = impl.newFacade();
          list.add(localFuture);
          localFuture.set(i);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/AbstractFutureBenchmarks.java

        }
      }
    
      enum Impl {
        NEW {
          @Override
          <T> Facade<T> newFacade() {
            return new NewAbstractFutureFacade<T>();
          }
        },
        OLD {
          @Override
          <T> Facade<T> newFacade() {
            return new OldAbstractFutureFacade<T>();
          }
        };
    
        abstract <T> Facade<T> newFacade();
      }
    
      @SuppressWarnings("ThreadPriorityCheck") // TODO: b/175898629 - Consider onSpinWait.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 17 02:42:09 UTC 2024
    - 13.6K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/AbstractFutureFootprintBenchmark.java

      public Object measureSize() {
        for (Thread thread : blockedThreads) {
          thread.interrupt();
        }
        blockedThreads.clear();
        final Facade<Object> f = impl.newFacade();
        for (int i = 0; i < numThreads; i++) {
          Thread thread =
              new Thread() {
                @Override
                public void run() {
                  try {
                    f.get();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 2.9K bytes
    - Viewed (0)
Back to top