Package com.opengamma.util.monitor

Examples of com.opengamma.util.monitor.OperationTimer.finished()


      }
      if (beansUpdated) {
        getSession().flush();
      }
    }
    timer.finished();
  }

  @Override
  public ContractCategoryBean getOrCreateContractCategoryBean(String name) {
    Query query = getSession().getNamedQuery("ContractCategoryBean.one");
View Full Code Here


          for (int i = 0; i < 100; i++) {
            final double x = -15. + i * 30. / 200.0;
            res += function.evaluate(x);
          }
        }
        timer.finished();
      }
      res *= 2;
    }
  }

View Full Code Here

    if (BENCHMARK_CYCLES > 0) {
      final OperationTimer timer = new OperationTimer(s_logger, "processing {} cycles on integral", BENCHMARK_CYCLES);
      for (int i = 0; i < BENCHMARK_CYCLES; i++) {
        priceWithIntegral();
      }
      timer.finished();
    }
  }

  @Test
  public void testIntegralCorrection() {
View Full Code Here

    if (BENCHMARK_CYCLES > 0) {
      final OperationTimer timer = new OperationTimer(s_logger, "processing {} cycles on integral (corrected)", BENCHMARK_CYCLES);
      for (int i = 0; i < BENCHMARK_CYCLES; i++) {
        priceWithIntegralCorrection();
      }
      timer.finished();
    }
  }

  @Test
  public void testFFT() {
View Full Code Here

    if (BENCHMARK_CYCLES > 0) {
      final OperationTimer timer = new OperationTimer(s_logger, "processing {} cycles on FFT", BENCHMARK_CYCLES);
      for (int i = 0; i < BENCHMARK_CYCLES; i++) {
        priceWithFFT();
      }
      timer.finished();
    }
  }

  private void priceWithIntegral() {
    final int n = 7;
View Full Code Here

      if (!toMake.isEmpty()) {
        createPersistentSubscription(catchExceptions, toMake); //PLAT-1632
        persistentSubscriptionsToMake.removeAll(toMake);
      }
    }
    operationTimer.finished();
    s_logger.info("Server updated");
  }

  private void createPersistentSubscription(boolean catchExceptions, LiveDataSpecification sub) {
    createPersistentSubscription(catchExceptions, Collections.singleton(sub));
View Full Code Here

    if (benchmarkCycles > 0) {
      final OperationTimer timer = new OperationTimer(getlogger(), "processing {} cycles fitting smile", nStarts * benchmarkCycles);
      for (int i = 0; i < benchmarkCycles; i++) {
        testNoisyFit();
      }
      final long time = timer.finished();
      getlogger().info("time per fit: " + ((double) time) / benchmarkCycles / nStarts + "ms");

    }
  }

View Full Code Here

    if (benchmarkCycles > 0) {
      final OperationTimer timer = new OperationTimer(_logger, "processing {} cycles fitting SABR smile", benchmarkCycles);
      for (int i = 0; i < benchmarkCycles; i++) {
        testNoisyFit();
      }
      timer.finished();
    }
  }

  //SABRModelFitterTest - 1555ms-processing 1000 cycles fitting SABR smile - old
  @SuppressWarnings("deprecation")
View Full Code Here

    if (benchmarkCycles > 0) {
      final OperationTimer timer = new OperationTimer(_logger, "processing {} cycles fitting SABR smile - old", benchmarkCycles);
      for (int i = 0; i < benchmarkCycles; i++) {
        doOldTest(options, data, start, fixed, fitter);
      }
      timer.finished();
    }

  }

  @SuppressWarnings("deprecation")
View Full Code Here

    if (_benchmarkCycles > 0) {
      final OperationTimer timer = new OperationTimer(_logger, "processing {} cycles generating SABR smile", _benchmarkCycles);
      for (int i = 0; i < _benchmarkCycles; i++) {
        x += f.evaluate(data);
      }
      timer.finished();
    }
  }

  @Test
  public void testFitTime() {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.