From 463b96e4fae29f6dfa51571d1ea3bf74bfede1c6 Mon Sep 17 00:00:00 2001 From: A-gambit Date: Mon, 28 Nov 2016 13:42:12 +0200 Subject: [PATCH] add flow types test to travice and full tests scripts --- package.json | 4 +-- test/perf/perf.txt | 76 +++++++++++++++++++++++----------------------- 2 files changed, 40 insertions(+), 40 deletions(-) diff --git a/package.json b/package.json index 1378def02..758ba60e8 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "typings": "lib/mobx.d.ts", "scripts": { "test": "npm run quick-build && npm run tape", - "full-test": "npm run small-build && npm run build-tests && npm run use-minified && npm run tape && npm run perf", + "full-test": "npm run small-build && npm run build-tests && npm run use-minified && npm run tape && npm run perf && npm run test-flow", "tape": "tape test/*.js | faucet", "perf": "npm run small-build && PERSIST=true time node --expose-gc test/perf/index.js", "prepublish": "npm run small-build", @@ -16,7 +16,7 @@ "test-browser-chrome": "npm run small-build && ( browserify test/*.js | tape-run --browser chrome )", "test-browser-safari": "npm run small-build && ( browserify test/*.js -t [ babelify --presets [ es2015 ] ] | tape-run --browser safari )", "test-browser-firefox": "npm run small-build && ( browserify test/*.js | tape-run --browser firefox )", - "test-travis": "npm run small-build && npm run build-tests && tape test/*.js test/perf/index.js && tsc && istanbul cover tape test/*.js", + "test-travis": "npm run small-build && npm run build-tests && tape test/*.js test/perf/index.js && tsc && istanbul cover tape test/*.js && npm run test-flow", "test-flow": "node_modules/.bin/flow check", "coverage": "npm run quick-build && npm run build-tests && istanbul cover tape test/*.js", "build-tests": "npm run build-typescript-tests && npm run build-babel-tests", diff --git a/test/perf/perf.txt b/test/perf/perf.txt index 2c3d56395..130cec343 100644 --- a/test/perf/perf.txt +++ b/test/perf/perf.txt @@ -1,51 +1,51 @@ -One observers many observes one - Started/Updated in 35/26 ms. -500 props observing sibling - Started/Updated in 3/5 ms. -Late dependency change - Updated in 59ms. +One observers many observes one - Started/Updated in 60/34 ms. +500 props observing sibling - Started/Updated in 3/11 ms. +Late dependency change - Updated in 135ms. Unused computables - Updated in 0 ms. -Unused observables - Updated in 9 ms. -Array reduce - Started/Updated in 30/25 ms. -Array loop - Started/Updated in 125/173 ms. -Order system batched: false tracked: true Started/Updated in 448/44 ms. -Order system batched: true tracked: true Started/Updated in 93/43 ms. -Order system batched: false tracked: false Started/Updated in 131/65 ms. -Order system batched: true tracked: false Started/Updated in 110/46 ms. +Unused observables - Updated in 25 ms. +Array reduce - Started/Updated in 57/44 ms. +Array loop - Started/Updated in 127/231 ms. +Order system batched: false tracked: true Started/Updated in 473/37 ms. +Order system batched: true tracked: true Started/Updated in 102/28 ms. +Order system batched: false tracked: false Started/Updated in 117/37 ms. +Order system batched: true tracked: false Started/Updated in 118/35 ms. -Create array - Created in 473ms. +Create array - Created in 552ms. -Create array (non-recursive) Created in 169ms. -Observable with many observers + dispose: 1240ms -expensive sort: created 5023 -expensive sort: updated 15817 -expensive sort: disposed641 -native plain sort: updated 1643 +Create array (non-recursive) Created in 297ms. +Observable with many observers + dispose: 768ms +expensive sort: created 2787 +expensive sort: updated 12518 +expensive sort: disposed561 +native plain sort: updated 1087 computed memoization 1ms -create folders 1ms. +create folders 0ms. create displayfolders 1ms. -create text 271ms. +create text 471ms. collapse folder 1ms. -uncollapse folder 0ms. -change name of folder 327ms. -search 47ms. -unsearch 228ms. +uncollapse folder 1ms. +change name of folder 498ms. +search 103ms. +unsearch 438ms. reactive folder tree [total] - 878ms. -create folders 28ms. + 1517ms. +create folders 21ms. create displayfolders 1ms. -create text 116ms. -collapse folder 3ms. -uncollapse folder 6ms. +create text 51ms. +collapse folder 2ms. +uncollapse folder 5ms. change name of folder 10ms. -search 29ms. -unsearch 20ms. +search 15ms. +unsearch 24ms. reactive folder tree [total] - 214ms. -create boxes 106ms. -mutations 380ms. -total 498ms. -create boxes 118ms. -mutations 945ms. -total 1175ms. + 131ms. +create boxes 89ms. +mutations 523ms. +total 625ms. +create boxes 90ms. +mutations 928ms. +total 1084ms. -Completed performance suite in 30.532 sec. \ No newline at end of file +Completed performance suite in 25.475 sec. \ No newline at end of file