Skip to content

Commit

Permalink
Simplify Cuis testSuite setup.
Browse files Browse the repository at this point in the history
  • Loading branch information
fniephaus committed Dec 22, 2023
1 parent c773884 commit 8ce479b
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
| testSuite testCases nonTerminatingTestCases failingTests result exitCode |
| testSuite nonTerminatingTestCases failingTests result exitCode |

StdIOWriteStream stdout nextPutAll: 'Setting author information for testing ...'; newLine; flush.
Utilities classPool at: #AuthorName put: 'TruffleSqueak'.
Expand Down Expand Up @@ -30,10 +30,7 @@ failingTests := OrderedCollection new.
assoc value do: [:sel | failingTests add: (testCase selector: sel) ]].

StdIOWriteStream stdout newLine; nextPutAll: 'Passing TestCases:'; newLine; flush.
testSuite := TestSuite new.
testCases := (TestCase allSubclasses reject: [:testCase |testCase isAbstract])
sorted: [:a :b | a name <= b name].
testCases do: [:testCase | testCase addToSuiteFromSelectors: testSuite].
testSuite := TestCase buildSuite.
testSuite tests removeAllSuchThat: [:ea | nonTerminatingTestCases anySatisfy: [:t | ea class == t class and: [ ea selector == t selector ]]].
testSuite tests removeAllSuchThat: [:ea | failingTests anySatisfy: [:t | ea class == t class and: [ ea selector == t selector ]]].
result := testSuite run.
Expand Down

1 comment on commit 8ce479b

@TruffleSqueak-Bot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Performance Report (8ce479b)

Benchmarks ran on graalvm-jdk-21+35.1.

Steady (after 100 iterations)

Benchmark Name Min Geomean Median Mean Max Total (ms) Total (min)
Bounce 561 569 564.03 562 564.02 112805 1.88
CD 484 496 488.24 486 488.22 97647 1.63
DeltaBlue 289 457 414.02 411 413.24 82803 1.38
Havlak 1167 1218 1197.45 1202 1197.38 239489 3.99
Json 378 388 380.81 379 380.79 76161 1.27
List 379 391 380.2 380 380.2 76040 1.27
Mandelbrot 228 237 231.65 233 231.63 46330 0.77
NBody 256 269 259.09 257 259.07 51818 0.86
Permute 154 166 155.65 155 155.64 31130 0.52
Queens 245 262 246.31 246 246.3 49262 0.82
Richards 1202 1222 1206.95 1207 1206.94 241389 4.02
Sieve 177 187 178.05 178 178.04 35609 0.59
Storage 140 154 141.73 141 141.71 28346 0.47
Towers 196 208 198.2 198 198.19 39640 0.66
5856 6224 6042.34 6035 6041.38 1208469 20.14

8ce479b-2-steady.svg

Warmup (first 100 iterations)

8ce479b-3-warmup.svg

Please sign in to comment.