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
/// This class demonstrates the performance of various loops that iterate over the pieces of a delimited string. | |
Class DC.LoopPerformance | |
{ | |
ClassMethod Run(pIterations As %Integer = 10000, pPieceLength As %Integer = 20, pNumberPieces = 100, pDelimiter = ",") | |
{ | |
#define START(%msg) Write %msg Set start = $zh | |
#define END Write ($zh - start)," seconds",! | |
// Build a random string given the specifications |