git.iko.soy/typeable/elm-ui
on master help sign in
include cssom in benchmarks
commitd2934dad5a96ace177ff643981dbae4a146b0660 authorMatthew Griffith <mdg.griffith@gmail.com> dateSun 7 Jul 2019, 10:50 (7 years ago) parent77517c0
2 files changed+4
benchmarks/runtime/index.js+1 benchmarks/runtime/template/run.html+3
benchmarks/runtime/index.js+1
@@ -132,6 +132,7 @@ async function write_results(allResults) {
132132 var item = instances[i]
133133 write_entrypoint(item)
134134 var template = fs.readFileSync("./benchmarks/runtime/template/run.html")
135+ var cssom = fs.readFileSync("./experiments/virtual-css/cssom.js")
135136 // we embed the compiled js to avoid having to start a server to read the app.
136137 await compileToString(["tmp/Main.elm"], { optimize: true, cwd: "./benchmarks" }).then(function (compiled_elm_code) {
137138 const compiled = eval(`\`${template}\``)
benchmarks/runtime/template/run.html+3
@@ -4,6 +4,9 @@
44 <meta charset="UTF-8">
55 <title>Main</title>
66 <script>
7+ ${cssom}
8+ </script>
9+ <script>
710 ${compiled_elm_code}
811 </script>
912</head>