Commit Graph

420 Commits

Author SHA1 Message Date
Robin Heggelund Hansen
4cc6541afd Add TextInput to benchmark, inspired from real world code base. 2021-09-17 09:34:20 +02:00
Robin Heggelund Hansen
31dae24951 Add boilerplate for new testcase. Seems there is a bug somewhere, as benchmark doesnt complete... 2021-09-17 09:34:20 +02:00
Matthew Griffith
f5c540e3e2
Merge pull request #53 from robinheghan/add-o3-flag
Add O3 flag to enable optimizations that increase asset size
2021-09-13 09:48:15 -04:00
Robin Heggelund Hansen
d14e6e3104 Add -O3 flag to enable optimizations that increase asset size. Currently, thats just the update record pass. 2021-09-10 20:09:38 +02:00
Robin Heggelund Hansen
08629cf44d Make use of commander option parsing instead of hand-crafted solution. 2021-09-10 19:42:48 +02:00
Robin Heggelund Hansen
fd0f08e43e Reduce asset size impact of record updates transform. 2021-09-10 12:41:57 +02:00
Matthew Griffith
f24d26f84c
Merge pull request #50 from amitaibu/patch-1
Fix small typo in minification docs
2021-09-02 09:13:21 -04:00
Robin Heggelund Hansen
7f7793e72d Include replacements in compiled output. 2021-08-20 19:57:47 +02:00
Matthew Griffith
8eb62ad205
Merge pull request #51 from robinheghan/optimized-function-wrappers
Optimized function wrappers
2021-08-20 08:41:21 -04:00
Robin Heggelund Hansen
b76f3718b3 Use function wrapper replacements by default. 2021-08-20 10:14:46 +02:00
Robin Heggelund Hansen
27871e4e7c Add function replacements. 2021-08-20 09:28:55 +02:00
Robin Heggelund Hansen
a3747b000f Add new testcase for partial applications. 2021-08-20 09:22:47 +02:00
Robin Heggelund Hansen
bf7663c69f Insert record constructors _inside_ Elm closure. 2021-08-20 08:41:27 +02:00
Robin Heggelund Hansen
4b8dbbed53 Fix a bunch of typescript errors 2021-08-20 08:13:03 +02:00
Amitai Burstein
8d7dac7798
Fix small typo in minification docs 2021-08-12 20:56:30 +03:00
Matthew Griffith
5490073cbe
Merge pull request #48 from robinheghan/liikennematto-benchmark
Add Liikennematto as a real world benchmark.
2021-08-12 09:45:47 -04:00
Matthew Griffith
2cfac81624
Merge pull request #49 from robinheghan/fix-replacement-code-compile-error
Fix typescript compile errors in replacement code
2021-08-12 09:43:23 -04:00
Matthew Griffith
f8efe235ab
Merge pull request #47 from robinheghan/improved-record-updates
Faster record updates
2021-08-12 09:40:43 -04:00
Robin Heggelund Hansen
9945aab47d Reset default browsers to run. 2021-08-12 15:34:45 +02:00
Robin Heggelund Hansen
b3a6fd1d62 Reset default transforms. 2021-08-12 15:31:28 +02:00
Robin Heggelund Hansen
7bfcdca3c7 Only perform conversion for object literals which has at least one property name used in an update expression, to save space. 2021-08-12 15:27:59 +02:00
Robin Heggelund Hansen
d776377375 Improve performance using IIFEs. 2021-08-12 14:50:15 +02:00
Robin Heggelund Hansen
154de13eb4 Fix typescript compile errors in code that allows replacing a javascript definition with multiple statements. 2021-07-28 20:29:07 +02:00
Robin Heggelund Hansen
788adf221a Add Liikennematto as a real world benchmark. 2021-07-28 20:18:14 +02:00
Robin Heggelund Hansen
dc522fec37 Add inline update benchmark for comparison. 2021-07-28 19:45:21 +02:00
Robin Heggelund Hansen
20efc7877e Minor changes to update testcase. 2021-07-15 22:24:29 +02:00
Robin Heggelund Hansen
5e60da40ac Fix bug where update statement didn't make it into the finished js output. 2021-07-15 22:22:29 +02:00
Robin Heggelund Hansen
4a404440c0 More realistic update testcase. 2021-07-15 11:58:40 +02:00
Robin Heggelund Hansen
a449782724 Optimize update statements. 2021-07-15 11:50:59 +02:00
Robin Heggelund Hansen
437d56039c Add simple benchmark for tesing record updates. 2021-07-15 11:32:04 +02:00
Robin Heggelund Hansen
fddb3c41a3 Create and make use of record constructors instead of literal objects. 2021-07-15 11:31:48 +02:00
Robin Heggelund Hansen
36e77be58a accidental commit. 2021-07-14 12:32:30 +02:00
Robin Heggelund Hansen
5e16fe457b Fix remaining compile errors. 2021-07-14 12:16:26 +02:00
Robin Heggelund Hansen
266885899e Fix compile errors in replacement code. 2021-07-14 12:02:39 +02:00
Robin Heggelund Hansen
f3a03a651e Set up boilerplate code for improving record updates. 2021-07-14 11:59:23 +02:00
Robin Heggelund Hansen
dbe7573118 Enable v8 analysis 2021-07-14 11:42:42 +02:00
Robin Heggelund Hansen
aa6b861f5b Disable all transforms, for now. 2021-07-14 11:42:42 +02:00
Matthew Griffith
32edf808ed trim before querying for subsection title in jitlog 2021-07-11 12:30:45 -04:00
Matthew Griffith
22c4bdd02e also add Raw source to the jitlog summary 2021-07-11 12:26:13 -04:00
Matthew Griffith
b6d67390b5 summarize jit log so it's a little easier to follow 2021-07-11 12:14:52 -04:00
Matthew Griffith
0a87d3fadd break out reporting and benchmarking to their own modules 2021-07-11 11:44:18 -04:00
Matthew Griffith
f146c47936 restore curly brace 2021-07-11 11:30:34 -04:00
Matthew Griffith
5701d1b70a more types and be able to output the Jitlog 2021-07-11 10:46:09 -04:00
Matthew Griffith
e10d485a9a ignore jitlogs 2021-07-11 10:44:52 -04:00
Matthew Griffith
98cbf62425 Simplify postprocess as a single call 2021-07-10 14:20:33 -04:00
Matthew Griffith
2abb7d8781 Merge branch 'master' of https://github.com/mdgriffith/elm-optimize-level-2 2021-07-10 11:00:04 -04:00
Matthew Griffith
9eae5836ad Add a node runner! Default to headless browsers for benchmarks 2021-07-10 11:00:01 -04:00
Matthew Griffith
b615d125fd
Merge pull request #46 from robinheghan/more-flexible-replacements
More flexible replacements
2021-07-10 10:27:29 -04:00
Robin Heggelund Hansen
f42a03eb97 Fix transform bug. 2021-07-09 09:41:49 +02:00
Robin Heggelund Hansen
a3b90e9b12 Allow replacing a function/def with a whole bunch of code. 2021-07-09 09:16:36 +02:00