SticBenchmark.java
/**
* Copyright 2010,2021 Nikolas S Boyd.
Permission is granted to copy this work provided this copyright statement is retained in all copies.
*/
package Hoot.Tests;
import Hoot.Runtime.Functions.*;
import Hoot.Runtime.Faces.*;
import Hoot.Runtime.Values.*;
import Hoot.Runtime.Blocks.*;
import Smalltalk.Core.*;
import Smalltalk.Blocks.*;
import Smalltalk.Magnitudes.*;
import Hoot.Behaviors.*;
import Hoot.Behaviors.Nil;
import Hoot.Behaviors.Object;
import Hoot.Behaviors.True;
import Hoot.Behaviors.False;
import Hoot.Behaviors.Boolean;
import Hoot.Magnitudes.*;
import Hoot.Magnitudes.Integer;
import Hoot.Magnitudes.Character;
import Hoot.Magnitudes.Float;
import Hoot.Magnitudes.Double;
import Hoot.Collections.*;
import Hoot.Collections.String;
public class SticBenchmark extends TestableClosure
{
/**
* @return
*/
@Override public void runTest()
{
java.lang.String exitID = "SticBenchmark>>runTest";
Frame f0 = new Frame(exitID);
this.recycleGarbage();
SmallInteger count = SmallInteger.from(10000);
new ArrayWrites().reportAfterRepeated(count).reportSnapshots();
new ArrayCreates().reportAfterRepeated(count).reportSnapshots();
new DictionaryWrites().reportAfterRepeated(count).reportSnapshots();
new CollectionWrites().reportAfterRepeated(count).reportSnapshots();
new CollectionCycles().reportAfterRepeated(count).reportSnapshots();
new StringCompare().reportAfterRepeated(count).reportSnapshots();
this.log().cr();
new FloatMath().reportAfterRepeated(count).reportSnapshots();
new IntegerMath().reportAfterRepeated(count).reportSnapshots();
}
}