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
# error Add a NUGET reference to BenchMarkDotNet | |
void Main() | |
{ | |
new LookupTest().Validate(); | |
BenchmarkRunner.Run<LookupTest>(); | |
} | |
public class LookupTest | |
{ |
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
using System; | |
using UnityEngine; | |
class TestScript : MonoBehaviour | |
{ | |
struct ProjectileStruct | |
{ | |
public Vector3 Position; | |
public Vector3 Velocity; |
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
using System; | |
using System.Linq; | |
using System.Runtime.CompilerServices; | |
namespace Structs_vs_classes_array_test | |
{ | |
// code slightly modified from the Jackson Dunstan's article | |
// How to Write Faster Code Than 90% of Programmers | |
// http://jacksondunstan.com/articles/3860 |