Skip to content

Commit

Permalink
Performance: 'Minimal' layout mode (#369)
Browse files Browse the repository at this point in the history
* Start adding benchmarking tooling

* Add reperf to devdeps

* Add bench lib

* Add LayoutMode style property

* Benchmark minimal layout mode

* Factor out dimensions to separate module, abstract the css measurements into Dimensions.t

* Refactor GameOfLife to be pixel-based

* Run a minimal layout strategy

* Tweaks

* Formatting

* Update lockfiles

* Add benchmark to build / hygiene checks

* Remove commented out code
  • Loading branch information
bryphe authored Feb 26, 2019
1 parent d66810a commit fcbc95b
Show file tree
Hide file tree
Showing 86 changed files with 4,863 additions and 34 deletions.
9 changes: 9 additions & 0 deletions .ci/esy-bench.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Run benchmarks

steps:
- script: esy @bench install
displayName: 'esy @bench install'
- script: esy @bench build
displayName: 'esy @bench build'
- script: esy @bench x ReveryBench
displayName: 'esy @bench x ReveryBench'
4 changes: 4 additions & 0 deletions .ci/esy-check-hygiene.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ steps:
displayName: 'esy install'
- script: git diff --exit-code
displayName: 'check that `esy.lock` is up-to-date. If this fails, commit `esy.lock` changes and re-submit PR.'
- script: esy @bench install
displayName: 'esy @bench install'
- script: git diff --exit-code
displayName: 'check that `bench.esy.lock` is up-to-date. If this fails, commit `bench.esy.lock` changes and re-submit PR.'
- script: esy build
displayName: 'esy build'
- script: esy format
Expand Down
7 changes: 7 additions & 0 deletions ReveryBench.opam
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
opam-version: "1.2"
version: "dev"
maintainer: "bryphe@outlook.com"
author: ["Bryan Phelps"]
build: [

]
3 changes: 3 additions & 0 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
- template: .ci/esy-bench.yml
- template: .ci/publish-release.yml
- template: .ci/create-docs.yml
- template: .ci/publish-build-cache.yml
Expand Down Expand Up @@ -65,6 +66,7 @@ jobs:
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
- template: .ci/esy-bench.yml
- template: .ci/publish-release.yml
- template: .ci/publish-build-cache.yml

Expand All @@ -84,5 +86,6 @@ jobs:
- template: .ci/use-node.yml
- template: .ci/restore-build-cache.yml
- template: .ci/esy-build-steps.yml
- template: .ci/esy-bench.yml
- template: .ci/publish-release.yml
- template: .ci/publish-build-cache.yml
3 changes: 3 additions & 0 deletions bench.esy.lock/.gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Set eol to LF so files aren't converted to CRLF-eol on Windows.
* text eol=lf
3 changes: 3 additions & 0 deletions bench.esy.lock/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

# Reset any possible .gitignore, we want all esy.lock to be un-ignored.
!*
Loading

0 comments on commit fcbc95b

Please sign in to comment.