Created
April 29, 2018 18:07
-
-
Save baobao/dd962d19896f20e764358e168664ba68 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Profiler.BeginSample("#### System.Math.Abs ####"); | |
for (int i = 0; i < 10000; i++) | |
{ | |
System.Math.Abs(xx); | |
} | |
Profiler.EndSample(); | |
Profiler.BeginSample("#### UnityEngine.Mathf.Abs ####"); | |
for (int i = 0; i < 10000; i++) | |
{ | |
Mathf.Abs(xx); | |
} | |
Profiler.EndSample(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment