diff --git a/demos/benchmark/src/main.jsx b/demos/benchmark/src/main.jsx
index 033aa9ff..5d34afdc 100644
--- a/demos/benchmark/src/main.jsx
+++ b/demos/benchmark/src/main.jsx
@@ -1,14 +1,53 @@
import { render, View } from '@openinula/next';
-
let idCounter = 1;
-const adjectives = ['pretty', 'large', 'big', 'small', 'tall', 'short', 'long', 'handsome', 'plain', 'quaint', 'clean', 'elegant', 'easy', 'angry', 'crazy', 'helpful', 'mushy', 'odd', 'unsightly', 'adorable', 'important', 'inexpensive', 'cheap', 'expensive', 'fancy'];
+const adjectives = [
+ 'pretty',
+ 'large',
+ 'big',
+ 'small',
+ 'tall',
+ 'short',
+ 'long',
+ 'handsome',
+ 'plain',
+ 'quaint',
+ 'clean',
+ 'elegant',
+ 'easy',
+ 'angry',
+ 'crazy',
+ 'helpful',
+ 'mushy',
+ 'odd',
+ 'unsightly',
+ 'adorable',
+ 'important',
+ 'inexpensive',
+ 'cheap',
+ 'expensive',
+ 'fancy',
+];
const colours = ['red', 'yellow', 'blue', 'green', 'pink', 'brown', 'purple', 'brown', 'white', 'black', 'orange'];
-const nouns = ['table', 'chair', 'house', 'bbq', 'desk', 'car', 'pony', 'cookie', 'sandwich', 'burger', 'pizza', 'mouse', 'keyboard'];
+const nouns = [
+ 'table',
+ 'chair',
+ 'house',
+ 'bbq',
+ 'desk',
+ 'car',
+ 'pony',
+ 'cookie',
+ 'sandwich',
+ 'burger',
+ 'pizza',
+ 'mouse',
+ 'keyboard',
+];
function _random(max) {
- return Math.round(Math.random() * 1000) % max;
+ return Math.round(Math.random() * 1000) % max;
}
function buildData(count) {
@@ -16,21 +55,23 @@ function buildData(count) {
for (let i = 0; i < count; i++) {
data[i] = {
id: idCounter++,
- label: `${adjectives[_random(adjectives.length)]} ${colours[_random(colours.length)]} ${nouns[_random(nouns.length)]}`
+ label: `${adjectives[_random(adjectives.length)]} ${colours[_random(colours.length)]} ${nouns[_random(nouns.length)]}`,
};
}
return data;
}
-function Button ({ id, text, fn }) {
+function Button({ id, text, fn }) {
return (
-
-
+
+
);
}
-function App () {
+function App() {
let data = [];
let selected = null;
function run() {
@@ -63,29 +104,43 @@ function App () {
}
return (
-
-
-
-
+
+
+
+
+
Inula-next Keyed
+
+
+
+
+
+
+
+
+ |
+
+
+ |
+
+
+
+
+ |
+ |
+
+
+
+
+
);
}
diff --git a/demos/v2/index.html b/demos/v2/index.html
index 31a50a25..28fb9622 100644
--- a/demos/v2/index.html
+++ b/demos/v2/index.html
@@ -7,6 +7,6 @@
-
+