Changeset ae7a085c
- Timestamp:
- Dec 21, 2022, 9:25:38 PM (16 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- be3b952
- Parents:
- b797d97
- git-author:
- Peter A. Buhr <pabuhr@…> (12/21/22 21:24:42)
- git-committer:
- Peter A. Buhr <pabuhr@…> (12/21/22 21:25:38)
- Location:
- tests
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/PRNG.x64.txt
rb797d97 rae7a085c 1 1 2 PRNG() PRNG(5)PRNG(0,5)3 861 3 04 10137507171299805328 125 12205946788447993741 4 0 6 16222929371023265189 257 11921944259646500358 1 1 8 9511863719043198063 2 0 9 18170109536749574203 0 1 10 15896208456307578543 0 3 11 4171113079117645375 1 4 12 5535309872453329531 1 1 13 13293369315461644140 2 2 14 855811942427900360 1 1 15 9125507373316195824 1 5 16 6942856496042419510 1 5 17 16774706561877323900 2 4 18 17765436951300330249 4 0 19 3766082030894719812 1 2 20 15818141700523398820 3 5 21 1244962761353699441 0 5 22 4506898200126256218 1 2 2 PRNG() PRNG(5) PRNG(0,5) 3 8464106481 4 4 4 5215204710507639537 1 2 5 1880401021892145483 0 4 6 12503840966285181348 2 5 7 801971300205459356 0 2 8 6123812066052045228 3 1 9 7691074772031490538 4 3 10 4793575011534070065 0 0 11 10647551928893428440 1 3 12 10865128702974868079 0 3 13 530720947131684825 3 0 14 10520125295812061287 1 5 15 7539957561855178679 4 4 16 13739826796006269835 0 2 17 4289714351582916365 3 2 18 16911914987551424434 2 1 19 5327155553462670435 4 0 20 16251986870929071204 4 4 21 13394433706240223001 0 3 22 4814982023332666924 4 0 23 23 seed 1009 24 24 25 25 Sequential 26 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%26 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 27 27 28 28 Concurrent 29 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%30 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%31 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%32 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%29 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 30 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 31 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 32 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 33 33 34 prng() prng(5)prng(0,5)35 861 3 036 10137507171299805328 1237 12205946788447993741 4 0 38 16222929371023265189 2539 11921944259646500358 1 1 40 9511863719043198063 2 0 41 18170109536749574203 0 1 42 15896208456307578543 0 3 43 4171113079117645375 1 4 44 5535309872453329531 1 1 45 13293369315461644140 2 2 46 855811942427900360 1 1 47 9125507373316195824 1 5 48 6942856496042419510 1 5 49 16774706561877323900 2 4 50 17765436951300330249 4 0 51 3766082030894719812 1 2 52 15818141700523398820 3 5 53 1244962761353699441 0 5 54 4506898200126256218 1 2 34 prng() prng(5) prng(0,5) 35 8464106481 4 4 36 5215204710507639537 1 2 37 1880401021892145483 0 4 38 12503840966285181348 2 5 39 801971300205459356 0 2 40 6123812066052045228 3 1 41 7691074772031490538 4 3 42 4793575011534070065 0 0 43 10647551928893428440 1 3 44 10865128702974868079 0 3 45 530720947131684825 3 0 46 10520125295812061287 1 5 47 7539957561855178679 4 4 48 13739826796006269835 0 2 49 4289714351582916365 3 2 50 16911914987551424434 2 1 51 5327155553462670435 4 0 52 16251986870929071204 4 4 53 13394433706240223001 0 3 54 4814982023332666924 4 0 55 55 seed 1009 56 56 57 57 Sequential 58 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%58 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 59 59 60 60 Concurrent 61 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%62 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%63 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%64 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%61 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 62 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 63 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 64 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 65 65 66 prng(t) prng(t,5)prng(t,0,5)67 861 3 068 10137507171299805328 1269 12205946788447993741 4 0 70 16222929371023265189 2571 11921944259646500358 1 1 72 9511863719043198063 2 0 73 18170109536749574203 0 1 74 15896208456307578543 0 3 75 4171113079117645375 1 4 76 5535309872453329531 1 1 77 13293369315461644140 2 2 78 855811942427900360 1 1 79 9125507373316195824 1 5 80 6942856496042419510 1 5 81 16774706561877323900 2 4 82 17765436951300330249 4 0 83 3766082030894719812 1 2 84 15818141700523398820 3 5 85 1244962761353699441 0 5 86 4506898200126256218 1 2 66 prng(t) prng(t,5) prng(t,0,5) 67 8464106481 4 4 68 5215204710507639537 1 2 69 1880401021892145483 0 4 70 12503840966285181348 2 5 71 801971300205459356 0 2 72 6123812066052045228 3 1 73 7691074772031490538 4 3 74 4793575011534070065 0 0 75 10647551928893428440 1 3 76 10865128702974868079 0 3 77 530720947131684825 3 0 78 10520125295812061287 1 5 79 7539957561855178679 4 4 80 13739826796006269835 0 2 81 4289714351582916365 3 2 82 16911914987551424434 2 1 83 5327155553462670435 4 0 84 16251986870929071204 4 4 85 13394433706240223001 0 3 86 4814982023332666924 4 0 87 87 seed 1009 88 88 89 89 Sequential 90 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%90 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 91 91 92 92 Concurrent 93 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%94 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%95 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%96 trials 100000000 buckets 100000 min 87 5 max 1138 avg 1000.0 std 31.8rstd 3.2%93 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 94 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 95 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% 96 trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2% -
tests/.expect/nested_function.x64.txt
rb797d97 rae7a085c 1 total 801 total 155 -
tests/PRNG.cfa
rb797d97 rae7a085c 8 8 // Created On : Wed Dec 29 09:38:12 2021 9 9 // Last Modified By : Peter A. Buhr 10 // Last Modified On : Tue Nov 22 22:51:12202211 // Update Count : 38110 // Last Modified On : Wed Dec 21 20:39:59 2022 11 // Update Count : 406 12 12 // 13 13 … … 60 60 61 61 62 unsigned int seed = 1009;62 size_t seed = 1009; 63 63 64 64 thread T1 {}; … … 116 116 } // dummy 117 117 118 118 119 int main() { 119 120 // causes leaked storage message 120 // setlocale( LC_NUMERIC, getenv( "LANG" ) ); // print digit separator 121 // setlocale( LC_NUMERIC, getenv( "LANG" ) ); // print digit separator 122 // locale_t loc = newlocale( LC_NUMERIC_MASK, getenv( "LANG" ), (locale_t)0p ); 123 // if ( loc == (locale_t)0p ) abort( "newlocale" ); 124 // uselocale( loc ); 121 125 122 126 enum { TASKS = 4 }; … … 130 134 131 135 sout | sepDisable; 132 sout | wd( 13, "rand()" ) | wd(10, "rand(5)") | wd(13, "rand(0,5)" );133 for ( 20 ) { 134 sout | wd( 13, rand()) | nonl;135 sout | wd(1 0, rand() % 5) | nonl;136 sout | wd(1 3, rand() % (5 - 0 + 1) + 0);136 sout | wd(26, "rand()" ) | wd(12, "rand(5)") | wd(12, "rand(0,5)" ); 137 for ( 20 ) { 138 sout | wd(26, rand()) | nonl; 139 sout | wd(12, rand() % 5) | nonl; 140 sout | wd(12, rand() % (5 - 0 + 1) + 0); 137 141 } // for 138 142 sout | sepEnable; … … 168 172 169 173 sout | sepDisable; 170 sout | nl | wd( 13, "PRNG()" ) | wd(10, "PRNG(5)") | wd(13, "PRNG(0,5)" );171 for ( 20 ) { 172 sout | wd( 13, prng( prng )) | nonl; // cascading => side-effect functions called in arbitary order173 sout | wd(1 0, prng( prng, 5 )) | nonl;174 sout | wd(1 3, prng( prng, 0, 5 ));174 sout | nl | wd(26, "PRNG()" ) | wd(12, "PRNG(5)") | wd(12, "PRNG(0,5)" ); 175 for ( 20 ) { 176 sout | wd(26, prng( prng )) | nonl; // cascading => side-effect functions called in arbitary order 177 sout | wd(12, prng( prng, 5 )) | nonl; 178 sout | wd(12, prng( prng, 0, 5 )); 175 179 } // for 176 180 sout | sepEnable; … … 203 207 204 208 sout | sepDisable; 205 sout | nl | wd( 13, "prng()" ) | wd(10, "prng(5)") | wd(13, "prng(0,5)" );206 for ( 20 ) { 207 sout | wd( 13, prng()) | nonl; // cascading => side-effect functions called in arbitary order208 sout | wd(1 0, prng( 5 )) | nonl;209 sout | wd(1 3, prng( 0, 5 ));209 sout | nl | wd(26, "prng()" ) | wd(12, "prng(5)") | wd(12, "prng(0,5)" ); 210 for ( 20 ) { 211 sout | wd(26, prng()) | nonl; // cascading => side-effect functions called in arbitary order 212 sout | wd(12, prng( 5 )) | nonl; 213 sout | wd(12, prng( 0, 5 )); 210 214 } // for 211 215 sout | sepEnable; … … 239 243 240 244 sout | sepDisable; 241 sout | nl | wd( 13, "prng(t)" ) | wd(10, "prng(t,5)") | wd(13, "prng(t,0,5)" );242 for ( 20 ) { 243 sout | wd( 13, prng( th )) | nonl; // cascading => side-effect functions called in arbitary order244 sout | wd(1 0, prng( th, 5 )) | nonl;245 sout | wd(1 3, prng( th, 0, 5 ));245 sout | nl | wd(26, "prng(t)" ) | wd(12, "prng(t,5)") | wd(12, "prng(t,0,5)" ); 246 for ( 20 ) { 247 sout | wd(26, prng( th )) | nonl; // cascading => side-effect functions called in arbitary order 248 sout | wd(12, prng( th, 5 )) | nonl; 249 sout | wd(12, prng( th, 0, 5 )); 246 250 } // for 247 251 sout | sepEnable; … … 266 270 #endif // 0 267 271 // malloc_stats(); 272 // freelocale( loc ); 268 273 } // main 269 274 -
tests/concurrent/pthread/.expect/bounded_buffer.x64.txt
rb797d97 rae7a085c 1 producer total value is 241502 consumer total value is 241501 producer total value is 44280 2 consumer total value is 44280
Note: See TracChangeset
for help on using the changeset viewer.