Test SignalForge performance with thousands of signals
Create thousands of signals and watch update times stay fast!
import { createSignal, batch } from 'signalforge/core';
// Create thousands of signals
const signals = Array.from({ length: 10000 }, () =>
createSignal(Math.random() * 100)
);
// Update efficiently with batch
batch(() => {
signals.forEach(signal => {
signal.set(signal.get() + 1);
});
}); // Only triggers one re-render!Group multiple signal updates to trigger only one re-render.
Only render visible items, not all 10,000 at once.
They only recalculate when dependencies change.
Use React DevTools Profiler to measure performance.
Master performance? Try these optimization demos: