Wow, this is surprising. Overhead? 50%? Starting from a fresh flash on each, Cobra seems to be half the speed of Panda II:
Cobra
PerformanceTester - PrintSomeInfo
System Version: 4.1.6.0
Cpu.SlowClock: 18000000
Cpu.SystemClock: 18000000
Debugger Attached: True
PerformanceTester - MiscTests
time nothing [0.010 ms]
time Utility.ComputeCRC 2701537051 [0.175 ms]
time IntPlaces 0: 1 [0.282 ms]
time IntPlaces 4000: 4 [0.462 ms]
time IntPlaces -4000: 5 [0.584 ms]
time IntPlaces int.MaxValue: 10 [0.766 ms]
time IntPlaces int.MinValue: 11 [0.867 ms]
PerformanceTester - ArrayTests
time fill bytes1 [15.327 ms]
time FillArrayWithIndexValue bytes1 [15.438 ms]
time Array.Clear [0.059 ms]
time Array.Copy [0.222 ms]
time bytes1.CopyTo [0.287 ms]
time Array.IndexOf 98 is 98 [0.561 ms]
time Utility.CombineArrays 200 [0.149 ms]
time Utility.ExtractValueFromArray 50462976 [0.109 ms]
time Utility.ExtractRangeFromArray 10 [0.123 ms]
time bytes2[99] == 99 True [0.052 ms]
time bytes2[bytes2.Length-1] == 99 True [0.087 ms]
PerformanceTester - StringTests 100chars
time init string of 100 chars [0.031 ms]
time UTF8Encoding.UTF8.GetBytes [0.462 ms]
time UTF8Encoding.UTF8.GetChars [1.106 ms]
time new string(chars) [0.212 ms]
PerformanceTester - StringTestsShort 20chars
time init string of 20 chars [-0.014 ms]
time UTF8Encoding.UTF8.GetBytes [0.386 ms]
time UTF8Encoding.UTF8.GetChars [0.573 ms]
time new string(chars) [0.089 ms]
PerformanceTester - SomeLoopOps
Time loop: i++, u++ [10.477 ms]
Time loop: i += 1, u += 1 [10.598 ms]
Time loop: f = 2.0f/3.0f [9.062 ms]
Time loop: d = 2.0/3.0 [9.556 ms]
Time loop: if (i % 10 == 0) u4++ [16.101 ms]
PerformanceTester - ClearByteArray
create new byte array [0.043 ms] 00
Array.Clear [0.117 ms]
clear using ‘for ++’ [12.701 ms]
clear using ‘for --’ [13.236 ms]
clear using ‘while --’ [12.838 ms]
PerformanceTester - SumByteArray
sum byte array ‘for each’ [17.493 ms]
sum byte array ‘for ++’ [14.535 ms]
sum byte array ‘while --’ [14.558 ms]
PerformanceTester - IntToByteArrayTests
time IntToASCII 0: 0 [0.595 ms]
time IntToASCII 4000: 4000 [1.183 ms]
time IntToASCII -4000: -4000 [1.772 ms]
time IntToASCII int.MaxValue: 2147483647 [2.886 ms]
time IntToASCII int.MinValue: -2147483647 [3.362 ms]
time int.ToString + GetBytes 0: 0 [2.033 ms]
time int.ToString + GetBytes 4000: 4000 [1.823 ms]
time int.ToString + GetBytes -4000: -4000 [2.511 ms]
time int.ToString + GetBytes int.MaxValue: 2147483647 [2.098 ms]
time int.ToString + GetBytes int.MinValue+1: -2147483647 [2.609 ms]
tests ran in: [694.379 ms]
The thread ‘’ (0x1) has exited with code 0 (0x0).
Done.
=========================================================================
Panda II
PerformanceTester - PrintSomeInfo
System Version: 4.1.6.0
Cpu.SlowClock: 18000000
Cpu.SystemClock: 18000000
Debugger Attached: True
PerformanceTester - MiscTests
time nothing [0.005 ms]
time Utility.ComputeCRC 2701537051 [0.134 ms]
time IntPlaces 0: 1 [0.162 ms]
time IntPlaces 4000: 4 [0.187 ms]
time IntPlaces -4000: 5 [0.231 ms]
time IntPlaces int.MaxValue: 10 [0.306 ms]
time IntPlaces int.MinValue: 11 [0.348 ms]
PerformanceTester - ArrayTests
time fill bytes1 [5.702 ms]
time FillArrayWithIndexValue bytes1 [5.779 ms]
time Array.Clear [0.101 ms]
time Array.Copy [0.139 ms]
time bytes1.CopyTo [0.174 ms]
time Array.IndexOf 98 is 98 [0.299 ms]
time Utility.CombineArrays 200 [0.073 ms]
time Utility.ExtractValueFromArray 50462976 [0.050 ms]
time Utility.ExtractRangeFromArray 10 [0.064 ms]
time bytes2[99] == 99 True [0.025 ms]
time bytes2[bytes2.Length-1] == 99 True [0.084 ms]
PerformanceTester - StringTests 100chars
time init string of 100 chars [0.017 ms]
time UTF8Encoding.UTF8.GetBytes [0.234 ms]
time UTF8Encoding.UTF8.GetChars [0.443 ms]
time new string(chars) [0.120 ms]
PerformanceTester - StringTestsShort 20chars
time init string of 20 chars [0.017 ms]
time UTF8Encoding.UTF8.GetBytes [0.191 ms]
time UTF8Encoding.UTF8.GetChars [0.237 ms]
time new string(chars) [0.117 ms]
PerformanceTester - SomeLoopOps
Time loop: i++, u++ [3.891 ms]
Time loop: i += 1, u += 1 [3.843 ms]
Time loop: f = 2.0f/3.0f [3.398 ms]
Time loop: d = 2.0/3.0 [3.497 ms]
Time loop: if (i % 10 == 0) u4++ [6.175 ms]
PerformanceTester - ClearByteArray
create new byte array [0.026 ms] 00
Array.Clear [0.102 ms]
clear using ‘for ++’ [4.486 ms]
clear using ‘for --’ [5.041 ms]
clear using ‘while --’ [5.145 ms]
PerformanceTester - SumByteArray
sum byte array ‘for each’ [6.528 ms]
sum byte array ‘for ++’ [5.075 ms]
sum byte array ‘while --’ [5.436 ms]
PerformanceTester - IntToByteArrayTests
time IntToASCII 0: 0 [0.205 ms]
time IntToASCII 4000: 4000 [0.553 ms]
time IntToASCII -4000: -4000 [0.612 ms]
time IntToASCII int.MaxValue: 2147483647 [1.092 ms]
time IntToASCII int.MinValue: -2147483647 [1.195 ms]
time int.ToString + GetBytes 0: 0 [0.906 ms]
time int.ToString + GetBytes 4000: 4000 [0.963 ms]
time int.ToString + GetBytes -4000: -4000 [1.548 ms]
time int.ToString + GetBytes int.MaxValue: 2147483647 [0.976 ms]
time int.ToString + GetBytes int.MinValue+1: -2147483647 [1.163 ms]
tests ran in: [337.640 ms]
The thread ‘’ (0x1) has exited with code 0 (0x0).