优化「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.Data;
using System.Diagnostics;
using System.Windows;
using Deedy.Testing;
@@ -42,9 +43,12 @@ whil false @var1 10 <
endi
endw
";
Todo todo = new Todo();
todo.Init(script);
todo.Redo();
Todo todo = new();
todo.Init("varp var1 111");
Stopwatch sw = Stopwatch.StartNew();
for (int i = 0; i < 1000000; i++)
todo.Redo();
sw.Stop();
}
}