Fixed a lazySlot bug where lazy slots in different objects end up pointing to the...
[io/quag.git] / libs / iovm / tests / run.io
blob115c76bdfa534fb4065411ca55f24c20d0bf1470
1 #!/usr/bin/env io
3 //Message useIoShuffle
4 //Collector debugOn
6 test := method(TestSuite clone setPath(launchPath) run)
8 time := Date clone cpuSecondsToRun(r := test)
9 writeln("time: ", time, " seconds")
10 System exit(r)
13 allocsPerMark
14 marksPerSweep
15 sweepsPerGeneration
16 maxAllocatedBytes (millions)
17 time to run
20 writeln("mpa as mb time mbt gc")
22 lastTimeUsed := 0
24 //aaa := method(1.1 + 2.2)
25 //test := method(10000 repeat(aaa))
27 list(1.01, 1.05, 1.1, 1.2, 1.5, 1.7, 2, 4) foreach(as,
28 list( 0.01, .1, 1, 2, 4, 16) foreach(mpa,
30 Collector setMarksPerAlloc(mpa)
31 Collector setAllocatedStep(as)
33 time := Date clone cpuSecondsToRun(test)
34 mb := (Collector maxAllocatedBytes/1000000) asString(0,2)
36 writeln(Collector marksPerAlloc asString(0,2), "\t",
37 Collector allocatedStep asString(0,2), "\t",
38 mb, "\t",
39 time asString(0,2) , "\t",
40 (mb asNumber * time ) asString(0,2), "\t",
41 (100*(Collector timeUsed - lastTimeUsed)/time) asString(2, 1), "%")
43 lastTimeUsed = Collector timeUsed
45 Collector collect
46 Collector resetMaxAllocatedBytes
49 "" println
53 writeln("mpa mps spg mb time mbt")
55 list(16, 64, 128) foreach(spg,
56 list(1, 10, 100) foreach(mpa,
57 list(100, 10000) foreach(mps,
59 Collector setMarksPerAlloc(mpa)
60 Collector setMarksPerSweep(mps)
61 Collector setSweepsPerGeneration(spg)
63 time := Date clone cpuSecondsToRun(r := TestSuite clone setPath(launchPath) run)
64 mb := (Collector maxAllocatedBytes/1000000) asString(0,1)
66 writeln(Collector marksPerAlloc asString(0,1), "\t", Collector marksPerSweep, "\t", Collector sweepsPerGeneration, "\t", mb, "\t", time asString(0,1) , "\t", (mb asNumber * time) asString(0,1) )
68 30 repeat(Collector collect)
69 Collector resetMaxAllocatedBytes
72 "" println
74 "" println
77 System exit(r)