Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bd1e3be

Browse files
committed
Merge branch 'lukechu10-master'
2 parents b379d7f + e65c8a7 commit bd1e3be

File tree

13 files changed

+246
-170
lines changed

13 files changed

+246
-170
lines changed

frameworks/keyed/maple/Cargo.toml

Lines changed: 0 additions & 22 deletions
This file was deleted.
Binary file not shown.

frameworks/keyed/sycamore/Cargo.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
[package]
2+
authors = ["Luke Chu"]
3+
edition = "2018"
4+
name = "js-framework-benchmark-sycamore"
5+
version = "1.0.0"
6+
7+
[lib]
8+
crate-type = ["cdylib"]
9+
10+
[dependencies]
11+
getrandom = {version = "0.2", features = ["js"]}
12+
rand = {version = "0.8", features = ["small_rng"]}
13+
sycamore = "0.5.1"
14+
wasm-bindgen = "0.2.74"
15+
web-sys = {version = "0.3.51", features = ["Window", "Document"]}
16+
17+
[profile.release]
18+
codegen-units = 1
19+
lto = true
20+
panic = "abort"
21+
22+
[package.metadata.wasm-pack.profile.release]
23+
wasm-opt = ['-O4']

frameworks/keyed/maple/index.html renamed to frameworks/keyed/sycamore/bundled-dist/index.html

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,17 @@
33
<head>
44
<meta charset="UTF-8">
55
<title>Maple</title>
6-
<link href="/css/currentStyle.css" rel="stylesheet"/>
76
<base href="bundled-dist/"></base>
7+
<link href="/css/currentStyle.css" rel="stylesheet"/>
8+
<link rel="modulepreload" href="./js-framework-benchmark-sycamore.js" />
9+
<link rel="preload" href="./js-framework-benchmark-sycamore_bg.wasm" as="fetch" type="application/wasm" crossorigin />
810
</head>
911
<body>
1012
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
1113
<div id='main'></div>
1214
<script type="module">
13-
import init from './js-framework-benchmark-maple.js';
14-
init('./js-framework-benchmark-maple_bg.wasm');
15+
import init from './js-framework-benchmark-sycamore.js';
16+
init('./js-framework-benchmark-sycamore_bg.wasm');
1517
</script>
1618
</body>
1719
</html>

0 commit comments

Comments
 (0)