From 14c230c7145882109e535cd3e82ac59e17ffd468 Mon Sep 17 00:00:00 2001 From: Olivier Chafik Date: Thu, 10 Dec 2015 21:38:09 +0000 Subject: [PATCH] Setup receivedData + requestCount metrics (requires benchpress 2.0.0-alpha.53) See https://github.com/angular/angular/commit/fe1dd77d941397d742024c2fbda648 5cdf5a0b16 --- README.md | 3 +++ package.json | 2 +- tree_benchmark.spec.js | 2 ++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 90ce3df..3a45ec7 100644 --- a/README.md +++ b/README.md @@ -13,6 +13,9 @@ $ ./node_modules/.bin/webdriver-manager update #Installs chromedriver and seleni $ ./node_modules/.bin/protractor protractor.conf.js #runs benchmark spec and logs output ``` +Note: you can use a local build of benchpress by linking to it with +`npm link ${ANGULAR_DIR}/dist/build/benchpress_bundle` (assuming you've built it with `gulp benchpress.bundle`). + ## See The Code * Benchmark code: [public/tree.html](public/tree.html), [public/tree.js](public/tree.js) diff --git a/package.json b/package.json index 176cb23..e3641a5 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "author": "jeffbcross", "license": "Apache 2", "dependencies": { - "benchpress": "^2.0.0-alpha.25", + "benchpress": "2.0.0-alpha.53", "http-server": "^0.7.5", "protractor": "^2.5.0", "reflect-metadata": "^0.1.0" diff --git a/tree_benchmark.spec.js b/tree_benchmark.spec.js index 981e236..1083190 100644 --- a/tree_benchmark.spec.js +++ b/tree_benchmark.spec.js @@ -35,6 +35,8 @@ describe('deep tree baseline', function() { $('#createDom').click(); }, bindings: [ + benchpress.bind(benchpress.Options.REQUEST_COUNT).toValue(true), + benchpress.bind(benchpress.Options.RECEIVED_DATA).toValue(true), benchpress.bind(benchpress.Options.SAMPLE_DESCRIPTION).toValue({ depth: depth })