當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript perf_util.runBenchmark函數代碼示例

本文整理匯總了TypeScript中e2e_util/perf_util.runBenchmark函數的典型用法代碼示例。如果您正苦於以下問題:TypeScript runBenchmark函數的具體用法?TypeScript runBenchmark怎麽用?TypeScript runBenchmark使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了runBenchmark函數的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: runTableBenchmark

 function runTableBenchmark(
     config: {id: string, url: string, ignoreBrowserSynchronization?: boolean, worker: Worker}) {
   return runBenchmark({
     id: config.id,
     url: config.url,
     ignoreBrowserSynchronization: config.ignoreBrowserSynchronization,
     params: [{name: 'cols', value: 40}, {name: 'rows', value: 200}],
     prepare: config.worker.prepare,
     work: config.worker.work
   });
 }
開發者ID:JanStureNielsen,項目名稱:angular,代碼行數:11,代碼來源:largetable_perf.ts

示例2: runLargeFormBenchmark

 function runLargeFormBenchmark(
     config: {id: string, url: string, ignoreBrowserSynchronization?: boolean, worker: Worker}) {
   return runBenchmark({
     id: config.id,
     url: config.url,
     params: [{name: 'copies', value: 8}],
     ignoreBrowserSynchronization: config.ignoreBrowserSynchronization,
     prepare: config.worker.prepare,
     work: config.worker.work
   });
 }
開發者ID:DeepanParikh,項目名稱:angular,代碼行數:11,代碼來源:largeform_perf.ts

示例3: runTreeBenchmark

 function runTreeBenchmark(
     config: {id: string, url: string, ignoreBrowserSynchronization?: boolean}) {
   return runBenchmark({
     id: config.id,
     url: config.url,
     ignoreBrowserSynchronization: config.ignoreBrowserSynchronization,
     params: [{name: 'depth', value: 9}],
     work: () => {
       $('#createDom').click();
       $('#destroyDom').click();
     }
   });
 }
開發者ID:JanStureNielsen,項目名稱:angular,代碼行數:13,代碼來源:tree_perf.ts

示例4: runTreeBenchmark

function runTreeBenchmark({id, benchmark, prepare, setup, work}: {
  id: string; benchmark: Benchmark, prepare ? () : void; setup ? () : void; work(): void;
}) {
  let params = [{name: 'depth', value: 11}];
  if (benchmark.extraParams) {
    params = params.concat(benchmark.extraParams);
  }
  browser.rootEl = RootEl;
  return runBenchmark({
    id: `${benchmark.id}.${id}`,
    url: benchmark.url,
    ignoreBrowserSynchronization: benchmark.ignoreBrowserSynchronization,
    params: params,
    work: work,
    prepare: prepare,
    setup: setup
  });
}
開發者ID:AnthonyPAlicea,項目名稱:angular,代碼行數:18,代碼來源:tree_perf.ts

示例5: runTreeBenchmark

 function runTreeBenchmark(config: {
   id: string,
   url: string, ignoreBrowserSynchronization?: boolean,
   work: () => any,
   prepare: () => any, extraParams?: {name: string, value: any}[]
 }) {
   let params = [{name: 'depth', value: 11}];
   if (config.extraParams) {
     params = params.concat(config.extraParams);
   }
   return runBenchmark({
     id: config.id,
     url: config.url,
     ignoreBrowserSynchronization: config.ignoreBrowserSynchronization,
     params: params,
     work: config.work,
     prepare: config.prepare
   });
 }
開發者ID:AlmogShaul,項目名稱:angular,代碼行數:19,代碼來源:tree_perf.ts


注:本文中的e2e_util/perf_util.runBenchmark函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。