优化「Dodo」脚本的调试用例

This commit is contained in:
zengwenjie
2025-10-17 10:07:37 +08:00
parent 55573f6040
commit 385e932401

View File

@@ -1,5 +1,6 @@
using System.Configuration; using System.Configuration;
using System.Data; using System.Data;
using System.Diagnostics;
using System.Windows; using System.Windows;
using Deedy.Testing; using Deedy.Testing;
@@ -42,9 +43,12 @@ whil false @var1 10 <
endi endi
endw endw
"; ";
Todo todo = new Todo(); Todo todo = new();
todo.Init(script); todo.Init("varp var1 111");
todo.Redo(); Stopwatch sw = Stopwatch.StartNew();
for (int i = 0; i < 1000000; i++)
todo.Redo();
sw.Stop();
} }
} }