git.iko.soy/typeable/elm-ui
on master help sign in
include cssom in benchmarks
d2934daMatthew Griffith
benchmarks/runtime/index.js+1
@@ -132,6 +132,7 @@ async function write_results(allResults) {
132 var item = instances[i]
132 var item = instances[i]
133 write_entrypoint(item)
133 write_entrypoint(item)
134 var template = fs.readFileSync("./benchmarks/runtime/template/run.html")
134 var template = fs.readFileSync("./benchmarks/runtime/template/run.html")
135+ var cssom = fs.readFileSync("./experiments/virtual-css/cssom.js")
135 // we embed the compiled js to avoid having to start a server to read the app.
136 // we embed the compiled js to avoid having to start a server to read the app.
136 await compileToString(["tmp/Main.elm"], { optimize: true, cwd: "./benchmarks" }).then(function (compiled_elm_code) {
137 await compileToString(["tmp/Main.elm"], { optimize: true, cwd: "./benchmarks" }).then(function (compiled_elm_code) {
137 const compiled = eval(`\`${template}\``)
138 const compiled = eval(`\`${template}\``)
benchmarks/runtime/template/run.html+3
@@ -4,6 +4,9 @@
4 <meta charset="UTF-8">
4 <meta charset="UTF-8">
5 <title>Main</title>
5 <title>Main</title>
6 <script>
6 <script>
7+ ${cssom}
8+ </script>
9+ <script>
7 ${compiled_elm_code}
10 ${compiled_elm_code}
8 </script>
11 </script>
9</head>
12</head>