public void PushPopOnce_Linked() { for (int i = 0; i < OpsPerInvoke; i++) { SimplifiedPool <object> .TryPut(s_TestObject); SimplifiedPool <object> .TryGet(); } }
public void PutFull_Linked() { while (SimplifiedPool <object> .TryPut(s_TestObject)) { } for (int i = 0; i < OpsPerInvoke; i++) { SimplifiedPool <object> .TryPut(s_TestObject); } }
public void PushPopCapacity_Linked() { for (int i = 0; i < OpsPerInvoke / Capacity; i++) { for (int j = 0; j < Capacity; j++) { SimplifiedPool <object> .TryPut(s_TestObject); } for (int j = 0; j < Capacity; j++) { SimplifiedPool <object> .TryGet(); } } }