diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-01-28 09:38:30 +0100 |
|---|---|---|
| committer | j-p <jp_bruyere@hotmail.com> | 2021-02-06 20:28:02 +0100 |
| commit | b948613fd357410ad195ecfe8c9f202f63431e1a (patch) | |
| tree | 4292da9d68caf1e66e7262f62a06ea0808b3cd51 /Samples/PerfTests/Program.cs | |
| parent | e6e2f8aec4c20bc04094cc5ff265fdb42fd0c8f2 (diff) | |
Crow.Text namespace, new TextBox using TextChange structure
Diffstat (limited to 'Samples/PerfTests/Program.cs')
| -rw-r--r-- | Samples/PerfTests/Program.cs | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/Samples/PerfTests/Program.cs b/Samples/PerfTests/Program.cs index dcc412ed..d6ada8b4 100644 --- a/Samples/PerfTests/Program.cs +++ b/Samples/PerfTests/Program.cs @@ -32,7 +32,7 @@ namespace PerfTests System.Runtime.Loader.AssemblyLoadContext.Default.ResolvingUnmanagedDll+=resolveUnmanaged; } #endif - readonly int count = 1, updateCycles = 0; + readonly int count = 10, updateCycles = 0; readonly bool screenOutput = false; readonly string inDirectory = null;//directory to test readonly string outFilePath; @@ -68,7 +68,7 @@ namespace PerfTests Console.WriteLine ("-i,--input:\n\tInput directory to search recursively for '.crow' file to test. If ommitted, builtin unit tests are performs"); Console.WriteLine ("-w,--width:\n\toutput surface width, not displayed on screen."); Console.WriteLine ("-h,--height:\n\toutput surface height, not displayed on screen."); - Console.WriteLine ("-c,--count:\n\trepeat each test 'c' times."); + Console.WriteLine ("-c,--count:\n\trepeat each test 'c' times. (default = 10, minimum = 5"); Console.WriteLine ("-b,--begin:\n\tStarting stage for measures, may be the stage name or stage index"); foreach (Stage s in Enum.GetValues(typeof(Stage))) { @@ -76,7 +76,7 @@ namespace PerfTests } Console.WriteLine ("-e,--end:\n\tEnding stage for measures, may be the stage name or stage index"); Console.WriteLine ("-r,--reset:\n\tenable clear iterators after each test file."); - Console.WriteLine ("-u,--update:\n\tmeasure 'n' update cycle with DateTime.Now string notified."); + Console.WriteLine ("-u,--update:\n\tmeasure 'n' update cycle with elapsed ticks string notified. (default = 0)"); Console.WriteLine ("-s,--screen:\n\tenable output to screen."); Console.WriteLine ("--help:\n\tthis help message."); } @@ -100,7 +100,7 @@ namespace PerfTests break; case "-c": case "--count": - count = int.Parse (args[i++]); + count = Math.Max(5, int.Parse (args[i++])); break; case "-w": case "--width": @@ -511,10 +511,13 @@ namespace PerfTests public static void Main (string [] args) { - try { + + try { using (TestInterface iface = new TestInterface (args)) { - iface.PerformUnitTests (); - iface.PerformTests (); + if (string.IsNullOrEmpty(iface.inDirectory)) + iface.PerformUnitTests (); + else + iface.PerformTests (); } } catch (Exception) { } |