Describe the bug
RC.0
https://mizulu.users.s.olid.uk/solid2-store-write-benchmark/r/2/
RC.7
https://mizulu.users.s.olid.uk/solid2-store-write-benchmark/r/1/
Your Example Website or App
.
Steps to Reproduce the Bug or Issue
.
Expected behavior
.
Screenshots or Videos
No response
Platform
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
Additional context
import {
createStore,
flush
} from "solid-js"
const STORE_COUNT = 100000
const WRITES_PER_STORE = 1
const stores = Array.from(
{ length: STORE_COUNT },
() =>
createStore({
value: 0
})
)
const start =
performance.now()
for (
let write = 0;
write < WRITES_PER_STORE;
write++
) {
for (
let i = 0;
i < STORE_COUNT;
i++
) {
const [, setStore] =
stores[i]
setStore(store => {
store.value =
write + 1
})
}
}
flush()
console.log(
{
stores:
STORE_COUNT,
writesPerStore:
WRITES_PER_STORE,
totalWrites:
STORE_COUNT *
WRITES_PER_STORE,
ms:
(
performance.now() -
start
).toFixed(3)
}
)
I am not sure how much of this benchmark is related to the fixes #3044
or the benchmarks from that issue, because I don't see this numbers in the reproductions in the 3044
Describe the bug
RC.0
https://mizulu.users.s.olid.uk/solid2-store-write-benchmark/r/2/
RC.7
https://mizulu.users.s.olid.uk/solid2-store-write-benchmark/r/1/
Your Example Website or App
.
Steps to Reproduce the Bug or Issue
.
Expected behavior
.
Screenshots or Videos
No response
Platform
Additional context
I am not sure how much of this benchmark is related to the fixes #3044
or the benchmarks from that issue, because I don't see this numbers in the reproductions in the 3044