Skip to content

Commit

Permalink
add flow types test to travice and full tests scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
A-gambit committed Nov 28, 2016
1 parent 3b696f9 commit 463b96e
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 40 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
76 changes: 38 additions & 38 deletions test/perf/perf.txt
Original file line number Diff line number Diff line change
@@ -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.
Completed performance suite in 25.475 sec.

0 comments on commit 463b96e

Please sign in to comment.