@@ -28,9 +28,9 @@ public InterpPgoTests(ITestOutputHelper output, SharedBuildPerTestClassFixture b
28
28
[ InlineData ( "Release" ) ]
29
29
public async Task FirstRunGeneratesTableAndSecondRunLoadsIt ( string config )
30
30
{
31
- // We need to invoke Greeting enough times to cause BCL code to tier so we can exercise interpreter PGO
31
+ // We need to invoke Random enough times to cause BCL code to tier so we can exercise interpreter PGO
32
32
// Invoking it too many times makes the test meaningfully slower.
33
- const int iterationCount = 70 ;
33
+ const int iterationCount = 50 ;
34
34
35
35
_testOutput . WriteLine ( "/// Creating project" ) ;
36
36
CopyTestAsset ( "WasmBasicTestApp" , "InterpPgoTest" , "App" ) ;
@@ -61,13 +61,13 @@ public async Task FirstRunGeneratesTableAndSecondRunLoadsIt(string config)
61
61
lock ( runner . OutputLines )
62
62
output = string . Join ( Environment . NewLine , runner . OutputLines ) ;
63
63
64
- Assert . Contains ( "Hello, World! " , output ) ;
64
+ Assert . Contains ( "I filled a buffer with random items " , output ) ;
65
65
// Verify that no PGO table was located in cache
66
66
Assert . Contains ( "Failed to load interp_pgo table" , output ) ;
67
67
// Verify that the table was saved after the app ran
68
68
Assert . Contains ( "Saved interp_pgo table" , output ) ;
69
69
// Verify that a specific method was tiered by the Greeting calls and recorded by PGO
70
- Assert . Contains ( "added System.Runtime.CompilerServices.Unsafe:Add<byte> (byte&,int ) to table" , output ) ;
70
+ Assert . Contains ( " System.Random:Next ( ) to table" , output ) ;
71
71
}
72
72
73
73
{
@@ -81,7 +81,7 @@ public async Task FirstRunGeneratesTableAndSecondRunLoadsIt(string config)
81
81
lock ( runner . OutputLines )
82
82
output = string . Join ( Environment . NewLine , runner . OutputLines ) ;
83
83
84
- Assert . Contains ( "Hello, World! " , output ) ;
84
+ Assert . Contains ( "I filled a buffer with random items " , output ) ;
85
85
// Verify that table data was loaded from cache
86
86
// if this breaks, it could be caused by change in config which affects the config hash and the cache storage hash key
87
87
Assert . Contains ( " bytes of interp_pgo data (table size == " , output ) ;
@@ -90,7 +90,7 @@ public async Task FirstRunGeneratesTableAndSecondRunLoadsIt(string config)
90
90
// Verify that method(s) were found in the table and eagerly tiered
91
91
Assert . Contains ( "because it was in the interp_pgo table" , output ) ;
92
92
// Verify that a specific method was tiered by the Greeting calls and recorded by PGO
93
- Assert . Contains ( "added System.Runtime.CompilerServices.Unsafe:Add<byte> (byte&,int ) to table" , output ) ;
93
+ Assert . Contains ( " System.Random:Next ( ) to table" , output ) ;
94
94
}
95
95
96
96
_testOutput . WriteLine ( "/// Done" ) ;
0 commit comments