Skip to content

Commit bf0c998

Browse files
committed
Merge branch 'master' of https://github.com/gbj/js-framework-benchmark into gbj-master
2 parents 82531f6 + 57c6c70 commit bf0c998

File tree

7 files changed

+36
-9
lines changed

7 files changed

+36
-9
lines changed

frameworks/keyed/leptos/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ crate-type = ["cdylib"]
1010
[dependencies]
1111
getrandom = { version = "0.2.7", features = ["js"] }
1212
rand = { version = "0.8.5", features = ["small_rng"] }
13-
leptos = "0.0.16"
13+
leptos = "0.0.17"
1414
wasm-bindgen = "0.2.82"
1515
web-sys = { version = "0.3.59", features = ["Window", "Document"] }
1616

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Leptos</title>
6+
<base href="bundled-dist/"></base>
7+
<link href="/css/currentStyle.css" rel="stylesheet"/>
8+
<link rel="modulepreload" href="./js-framework-benchmark-leptos.js" />
9+
<link rel="preload" href="./js-framework-benchmark-leptos_bg.wasm" as="fetch" type="application/wasm" crossorigin />
10+
</head>
11+
<body>
12+
<span class="preloadicon glyphicon glyphicon-remove" aria-hidden="true"></span>
13+
<div id='main'></div>
14+
<script type="module">
15+
import init from './js-framework-benchmark-leptos.js';
16+
init('./js-framework-benchmark-leptos_bg.wasm');
17+
</script>
18+
</body>
19+
</html>

frameworks/keyed/leptos/bundled-dist/js-framework-benchmark-leptos.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { append_nodes } from './snippets/leptos_dom-fad5c55a129c76e3/inline0.js';
2-
import { microtask } from './snippets/leptos_reactive-be0ca76d28d8fdea/inline0.js';
1+
import { append_nodes } from './snippets/leptos_dom-2063b41f41d5e755/inline0.js';
2+
import { microtask } from './snippets/leptos_reactive-8989d8d2ee07602e/inline0.js';
33

44
let wasm;
55

@@ -207,11 +207,11 @@ function makeMutClosure(arg0, arg1, dtor, f) {
207207
return real;
208208
}
209209
function __wbg_adapter_32(arg0, arg1) {
210-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hb95d5aa756b0edcf(arg0, arg1);
210+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3052c2e50dd93106(arg0, arg1);
211211
}
212212

213213
function __wbg_adapter_35(arg0, arg1, arg2) {
214-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h233ae46a0dcf39ad(arg0, arg1, addHeapObject(arg2));
214+
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h102638ed6546bb85(arg0, arg1, addHeapObject(arg2));
215215
}
216216

217217
/**
@@ -311,7 +311,7 @@ function getImports() {
311311
const ret = getObject(arg0);
312312
return addHeapObject(ret);
313313
};
314-
imports.wbg.__wbg_microtask_d70b1cde9ddf9c6a = function(arg0) {
314+
imports.wbg.__wbg_microtask_d3801e7e18518eef = function(arg0) {
315315
microtask(takeObject(arg0));
316316
};
317317
imports.wbg.__wbg_is_40a66842732708e7 = function(arg0, arg1) {
@@ -529,7 +529,7 @@ function getImports() {
529529
const ret = getObject(arg0).replaceChild(getObject(arg1), getObject(arg2));
530530
return addHeapObject(ret);
531531
}, arguments) };
532-
imports.wbg.__wbg_appendnodes_cf4e56bf25d6b666 = function(arg0, arg1, arg2, arg3, arg4) {
532+
imports.wbg.__wbg_appendnodes_4c45fdb21c50ec12 = function(arg0, arg1, arg2, arg3, arg4) {
533533
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
534534
wasm.__wbindgen_free(arg2, arg3 * 4);
535535
const ret = append_nodes(takeObject(arg1), v0, takeObject(arg4));
@@ -626,7 +626,7 @@ function getImports() {
626626
const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_35);
627627
return addHeapObject(ret);
628628
};
629-
imports.wbg.__wbindgen_closure_wrapper748 = function(arg0, arg1, arg2) {
629+
imports.wbg.__wbindgen_closure_wrapper749 = function(arg0, arg1, arg2) {
630630
const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_35);
631631
return addHeapObject(ret);
632632
};
Binary file not shown.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export function append_nodes(parent, newNodes, marker) {
2+
const nodes = [];
3+
for(const node of newNodes) {
4+
nodes.push(parent.insertBefore(node, marker));
5+
}
6+
return nodes;
7+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export function microtask(f) { queueMicrotask(f); }

frameworks/keyed/leptos/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"description": "Benchmark for Leptos",
55
"license": "ISC",
66
"js-framework-benchmark": {
7-
"frameworkVersion": "0.0.16"
7+
"frameworkVersion": "0.0.17"
88
},
99
"scripts": {
1010
"build-prod": "echo This is a no-op. && echo Due to heavy dependencies, the generated javascript is already provided. && echo If you really want to rebuild from source use: && echo npm run build-prod-force",

0 commit comments

Comments
 (0)