Skip to content

Commit 26cab97

Browse files
committed
Merge branch 'mogwai' of https://github.com/schell/js-framework-benchmark into schell-mogwai
2 parents 9220e5d + c79e126 commit 26cab97

20 files changed

+2340
-6
lines changed

frameworks/keyed/mogwai/Cargo.toml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[package]
2+
authors = ["Markus Kohlhase", "Schell Scivally"]
3+
edition = "2021"
4+
name = "js-framework-benchmark-mogwai"
5+
version = "1.0.0"
6+
7+
[lib]
8+
crate-type = ["cdylib"]
9+
10+
[dependencies]
11+
console_error_panic_hook = { version = "0.1.6" }
12+
console_log = "^0.1"
13+
# the application itself is part of the mogwai repo, as mogwai uses it as its own benchmark...
14+
mogwai-js-framework-benchmark = { version = "^0.1", features = ["keyed"] }
15+
mogwai-dom = "0.2.2"
16+
wasm-bindgen = "0.2.83"
17+
wasm-bindgen-futures = "0.4.33"
18+
19+
[profile.release]
20+
codegen-units = 1
21+
lto = true
22+
panic = "abort"
23+
24+
[package.metadata.wasm-pack.profile.release]
25+
wasm-opt = ['-O4']

frameworks/keyed/mogwai/README.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
Because of the heavy amount of Rust dependencies, this example is pre-compiled, so you don't need to compile anything.
2+
3+
However, if you do want to compile it, you will need the following:
4+
5+
* [Rust](https://www.rust-lang.org/tools/install)
6+
7+
After installing that, run these commands:
8+
9+
```
10+
npm install
11+
npm run build-prod-force
12+
```
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>mogwai</title>
6+
<base href="bundled-dist/"></base>
7+
<link href="/css/currentStyle.css" rel="stylesheet"/>
8+
<link rel="modulepreload" href="./js-framework-benchmark-mogwai.js" />
9+
<link rel="preload" href="./js-framework-benchmark-mogwai_bg.wasm" as="fetch" type="application/wasm" crossorigin />
10+
</head>
11+
<body>
12+
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
13+
<script type="module">
14+
import init from './js-framework-benchmark-mogwai.js';
15+
init('./js-framework-benchmark-mogwai_bg.wasm');
16+
</script>
17+
</body>
18+
</html>

0 commit comments

Comments
 (0)