Skip to content

Commit 3928ccb

Browse files
committed
Merge branch 'gbj-master'
2 parents fd41d8d + bf0c998 commit 3928ccb

File tree

8 files changed

+66
-51
lines changed

8 files changed

+66
-51
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 = { version = "0.0.8", features = ["csr"]}
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: 44 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
import { append_nodes } from './snippets/leptos_dom-1cef30d266eb4b15/inline0.js';
2-
import { microtask } from './snippets/leptos_reactive-ae6aa6c47cd1bda4/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

@@ -206,12 +206,12 @@ function makeMutClosure(arg0, arg1, dtor, f) {
206206

207207
return real;
208208
}
209-
function __wbg_adapter_30(arg0, arg1) {
210-
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hdb64020dcdabbf20(arg0, arg1);
209+
function __wbg_adapter_32(arg0, arg1) {
210+
wasm._dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h3052c2e50dd93106(arg0, arg1);
211211
}
212212

213-
function __wbg_adapter_33(arg0, arg1, arg2) {
214-
wasm._dyn_core__ops__function__FnMut__A____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h7ed2f5057516ac8c(arg0, arg1, addHeapObject(arg2));
213+
function __wbg_adapter_35(arg0, arg1, 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_32e984ce84de2d02 = function(arg0) {
314+
imports.wbg.__wbg_microtask_d3801e7e18518eef = function(arg0) {
315315
microtask(takeObject(arg0));
316316
};
317317
imports.wbg.__wbg_is_40a66842732708e7 = function(arg0, arg1) {
@@ -370,6 +370,10 @@ function getImports() {
370370
const ret = getObject(arg0).call(getObject(arg1));
371371
return addHeapObject(ret);
372372
}, arguments) };
373+
imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
374+
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
375+
return addHeapObject(ret);
376+
}, arguments) };
373377
imports.wbg.__wbg_instanceof_Window_acc97ff9f5d2c7b4 = function(arg0) {
374378
let result;
375379
try {
@@ -407,10 +411,6 @@ function getImports() {
407411
const ret = !getObject(arg0);
408412
return ret;
409413
};
410-
imports.wbg.__wbg_call_168da88779e35f61 = function() { return handleError(function (arg0, arg1, arg2) {
411-
const ret = getObject(arg0).call(getObject(arg1), getObject(arg2));
412-
return addHeapObject(ret);
413-
}, arguments) };
414414
imports.wbg.__wbg_cancelBubble_8c0bdf21c08f1717 = function(arg0) {
415415
const ret = getObject(arg0).cancelBubble;
416416
return ret;
@@ -495,17 +495,13 @@ function getImports() {
495495
imports.wbg.__wbg_add_89a4f3b0846cf0aa = function() { return handleError(function (arg0, arg1, arg2) {
496496
getObject(arg0).add(getStringFromWasm0(arg1, arg2));
497497
}, arguments) };
498-
imports.wbg.__wbg_setdata_b8bf872bfb7d95ea = function(arg0, arg1, arg2) {
499-
getObject(arg0).data = getStringFromWasm0(arg1, arg2);
500-
};
501498
imports.wbg.__wbg_createTextNode_300f845fab76642f = function(arg0, arg1, arg2) {
502499
const ret = getObject(arg0).createTextNode(getStringFromWasm0(arg1, arg2));
503500
return addHeapObject(ret);
504501
};
505-
imports.wbg.__wbg_replaceChild_4793d6269c04dd25 = function() { return handleError(function (arg0, arg1, arg2) {
506-
const ret = getObject(arg0).replaceChild(getObject(arg1), getObject(arg2));
507-
return addHeapObject(ret);
508-
}, arguments) };
502+
imports.wbg.__wbg_setdata_b8bf872bfb7d95ea = function(arg0, arg1, arg2) {
503+
getObject(arg0).data = getStringFromWasm0(arg1, arg2);
504+
};
509505
imports.wbg.__wbg_instanceof_Text_6855016c7825859b = function(arg0) {
510506
let result;
511507
try {
@@ -523,17 +519,17 @@ function getImports() {
523519
getInt32Memory0()[arg0 / 4 + 1] = len0;
524520
getInt32Memory0()[arg0 / 4 + 0] = ptr0;
525521
};
526-
imports.wbg.__wbg_isConnected_c2256d1e3bdf0c41 = function(arg0) {
527-
const ret = getObject(arg0).isConnected;
528-
return ret;
529-
};
530522
imports.wbg.__wbg_settextContent_538ceb17614272d8 = function(arg0, arg1, arg2) {
531523
getObject(arg0).textContent = arg1 === 0 ? undefined : getStringFromWasm0(arg1, arg2);
532524
};
533525
imports.wbg.__wbg_remove_a8fdc690909ea566 = function(arg0) {
534526
getObject(arg0).remove();
535527
};
536-
imports.wbg.__wbg_appendnodes_9ec65e8edb3b8208 = function(arg0, arg1, arg2, arg3, arg4) {
528+
imports.wbg.__wbg_replaceChild_4793d6269c04dd25 = function() { return handleError(function (arg0, arg1, arg2) {
529+
const ret = getObject(arg0).replaceChild(getObject(arg1), getObject(arg2));
530+
return addHeapObject(ret);
531+
}, arguments) };
532+
imports.wbg.__wbg_appendnodes_4c45fdb21c50ec12 = function(arg0, arg1, arg2, arg3, arg4) {
537533
var v0 = getArrayJsValueFromWasm0(arg2, arg3).slice();
538534
wasm.__wbindgen_free(arg2, arg3 * 4);
539535
const ret = append_nodes(takeObject(arg1), v0, takeObject(arg4));
@@ -542,55 +538,55 @@ function getImports() {
542538
getInt32Memory0()[arg0 / 4 + 1] = len1;
543539
getInt32Memory0()[arg0 / 4 + 0] = ptr1;
544540
};
545-
imports.wbg.__wbg_process_0cc2ada8524d6f83 = function(arg0) {
546-
const ret = getObject(arg0).process;
541+
imports.wbg.__wbg_crypto_e1d53a1d73fb10b8 = function(arg0) {
542+
const ret = getObject(arg0).crypto;
547543
return addHeapObject(ret);
548544
};
549545
imports.wbg.__wbindgen_is_object = function(arg0) {
550546
const val = getObject(arg0);
551547
const ret = typeof(val) === 'object' && val !== null;
552548
return ret;
553549
};
554-
imports.wbg.__wbg_versions_c11acceab27a6c87 = function(arg0) {
550+
imports.wbg.__wbg_process_038c26bf42b093f8 = function(arg0) {
551+
const ret = getObject(arg0).process;
552+
return addHeapObject(ret);
553+
};
554+
imports.wbg.__wbg_versions_ab37218d2f0b24a8 = function(arg0) {
555555
const ret = getObject(arg0).versions;
556556
return addHeapObject(ret);
557557
};
558-
imports.wbg.__wbg_node_7ff1ce49caf23815 = function(arg0) {
558+
imports.wbg.__wbg_node_080f4b19d15bc1fe = function(arg0) {
559559
const ret = getObject(arg0).node;
560560
return addHeapObject(ret);
561561
};
562562
imports.wbg.__wbindgen_is_string = function(arg0) {
563563
const ret = typeof(getObject(arg0)) === 'string';
564564
return ret;
565565
};
566-
imports.wbg.__wbg_static_accessor_NODE_MODULE_cf6401cc1091279e = function() {
567-
const ret = module;
568-
return addHeapObject(ret);
569-
};
570-
imports.wbg.__wbg_require_a746e79b322b9336 = function() { return handleError(function (arg0, arg1, arg2) {
571-
const ret = getObject(arg0).require(getStringFromWasm0(arg1, arg2));
572-
return addHeapObject(ret);
573-
}, arguments) };
574-
imports.wbg.__wbg_crypto_2036bed7c44c25e7 = function(arg0) {
575-
const ret = getObject(arg0).crypto;
576-
return addHeapObject(ret);
577-
};
578-
imports.wbg.__wbg_msCrypto_a21fc88caf1ecdc8 = function(arg0) {
566+
imports.wbg.__wbg_msCrypto_6e7d3e1f92610cbb = function(arg0) {
579567
const ret = getObject(arg0).msCrypto;
580568
return addHeapObject(ret);
581569
};
582570
imports.wbg.__wbg_newwithlength_f5933855e4f48a19 = function(arg0) {
583571
const ret = new Uint8Array(arg0 >>> 0);
584572
return addHeapObject(ret);
585573
};
586-
imports.wbg.__wbg_randomFillSync_065afffde01daa66 = function() { return handleError(function (arg0, arg1, arg2) {
574+
imports.wbg.__wbg_require_78a3dcfbdba9cbce = function() { return handleError(function () {
575+
const ret = module.require;
576+
return addHeapObject(ret);
577+
}, arguments) };
578+
imports.wbg.__wbindgen_is_function = function(arg0) {
579+
const ret = typeof(getObject(arg0)) === 'function';
580+
return ret;
581+
};
582+
imports.wbg.__wbg_randomFillSync_6894564c2c334c42 = function() { return handleError(function (arg0, arg1, arg2) {
587583
getObject(arg0).randomFillSync(getArrayU8FromWasm0(arg1, arg2));
588584
}, arguments) };
589585
imports.wbg.__wbg_subarray_58ad4efbb5bcb886 = function(arg0, arg1, arg2) {
590586
const ret = getObject(arg0).subarray(arg1 >>> 0, arg2 >>> 0);
591587
return addHeapObject(ret);
592588
};
593-
imports.wbg.__wbg_getRandomValues_b99eec4244a475bb = function() { return handleError(function (arg0, arg1) {
589+
imports.wbg.__wbg_getRandomValues_805f1c3d65988a5a = function() { return handleError(function (arg0, arg1) {
594590
getObject(arg0).getRandomValues(getObject(arg1));
595591
}, arguments) };
596592
imports.wbg.__wbg_length_9e1ae1900cb0fbd5 = function(arg0) {
@@ -622,16 +618,16 @@ function getImports() {
622618
imports.wbg.__wbindgen_throw = function(arg0, arg1) {
623619
throw new Error(getStringFromWasm0(arg0, arg1));
624620
};
625-
imports.wbg.__wbindgen_closure_wrapper89 = function(arg0, arg1, arg2) {
626-
const ret = makeMutClosure(arg0, arg1, 8, __wbg_adapter_30);
621+
imports.wbg.__wbindgen_closure_wrapper85 = function(arg0, arg1, arg2) {
622+
const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_32);
627623
return addHeapObject(ret);
628624
};
629-
imports.wbg.__wbindgen_closure_wrapper91 = function(arg0, arg1, arg2) {
630-
const ret = makeMutClosure(arg0, arg1, 8, __wbg_adapter_33);
625+
imports.wbg.__wbindgen_closure_wrapper87 = function(arg0, arg1, arg2) {
626+
const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_35);
631627
return addHeapObject(ret);
632628
};
633-
imports.wbg.__wbindgen_closure_wrapper765 = function(arg0, arg1, arg2) {
634-
const ret = makeMutClosure(arg0, arg1, 8, __wbg_adapter_33);
629+
imports.wbg.__wbindgen_closure_wrapper749 = function(arg0, arg1, arg2) {
630+
const ret = makeMutClosure(arg0, arg1, 5, __wbg_adapter_35);
635631
return addHeapObject(ret);
636632
};
637633

Binary file not shown.

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.8"
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",

frameworks/keyed/leptos/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ fn App(cx: Scope) -> Element {
115115
let update = move |_| {
116116
data.with(|data| {
117117
for row in data.iter().step_by(10) {
118-
row.label.1.update(|n| *n = format!("{} !!!", n));
118+
row.label.1.update(|n| n.push_str(" !!!"));
119119
}
120120
});
121121
};

0 commit comments

Comments
 (0)