VisualJS
Execution Comparison
Compare different approaches to the same problem — see how execution paths, memory usage, and performance differ side by side.
Run History
All stored executions. Select two to compare.
Click a run to select it as Run A or Run B for comparison.
Sum 1-5 (for loop)
10 events · 1 outputs
let sum = 0;
for (let i = 1; i <= 5; i++) {
sum += i;
}
console.log(sum);Sum 1-5 (while loop)
15 events · 1 outputs
let sum = 0;
let i = 1;
while (i <= 5) {
sum += i;
i++;
}
console.log(sum);Sum 1-3 (reduce)
7 events · 1 outputs
const arr = [1, 2, 3]; const sum = arr.reduce((a, b) => a + b, 0); console.log(sum);
Execution Diff
Compare event streams, variables, and output between runs.
Select two runs above to see their differences
Timeline Diff
Compare execution paths, branches, and loop patterns.
Select two runs to compare timelines
Memory Diff
Compare heap state, references, and objects between runs.
Select two runs to compare memory
Side-by-Side Playback
Step through both executions simultaneously.
Select two runs to enable playback