- Timestamp:
- Jan 4, 2023, 1:44:19 PM (3 years ago)
- Branches:
- ADT, ast-experimental, master, stuck-waitfor-destruct
- Children:
- 339e30a, a14926b
- Parents:
- 0348fd8 (diff), 66a89e7 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests
- Files:
-
- 1 deleted
- 7 edited
-
.expect/PRNG.x64.txt (modified) (1 diff)
-
.expect/PRNG.x86.txt (modified) (1 diff)
-
.expect/alloc.txt.old (deleted)
-
.expect/nested_function.x64.txt (modified) (1 diff)
-
.expect/nested_function.x86.txt (modified) (1 diff)
-
PRNG.cfa (modified) (8 diffs)
-
concurrent/pthread/.expect/bounded_buffer.x64.txt (modified) (1 diff)
-
concurrent/pthread/.expect/bounded_buffer.x86.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
tests/.expect/PRNG.x64.txt
r0348fd8 rd99a716 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/PRNG.x86.txt
r0348fd8 rd99a716 1 1 2 PRNG() PRNG(5)PRNG(0,5)3 8333105 1 24 1989339636 4 55 266970699 3 26 1928130121 3 47 1351003938 4 58 1624164922 4 39 363429604 1 210 3355083174 1111 214422584 1 112 2266729947 1 213 3649702519 2 414 2250875012 2 415 4184653025 1 316 2640851227 2 517 206468178 2 318 2600873108 1 319 3007574582 3 320 394476790 0 221 1312145388 1 522 2989081290 2 42 PRNG() PRNG(5) PRNG(0,5) 3 130161 1 1 4 4074541490 0 0 5 927506267 0 3 6 1991273445 1 3 7 669918146 2 3 8 519546860 1 1 9 1136699882 4 3 10 2130185384 3 1 11 992239050 0 5 12 2250903111 0 1 13 1544429724 3 2 14 1591091660 3 3 15 2511657707 2 4 16 1065770984 2 4 17 2412763405 4 4 18 1834447239 4 2 19 360289337 0 4 20 2449452027 1 1 21 3370425396 2 1 22 3109103043 0 3 23 23 seed 1009 24 24 25 25 Sequential 26 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%26 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 27 27 28 28 Concurrent 29 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%30 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%31 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%32 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%29 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 30 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 31 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 32 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 33 33 34 prng() prng(5)prng(0,5)35 8333105 1 236 1989339636 4 537 266970699 3 238 1928130121 3 439 1351003938 4 540 1624164922 4 341 363429604 1 242 3355083174 1143 214422584 1 144 2266729947 1 245 3649702519 2 446 2250875012 2 447 4184653025 1 348 2640851227 2 549 206468178 2 350 2600873108 1 351 3007574582 3 352 394476790 0 253 1312145388 1 554 2989081290 2 434 prng() prng(5) prng(0,5) 35 130161 1 1 36 4074541490 0 0 37 927506267 0 3 38 1991273445 1 3 39 669918146 2 3 40 519546860 1 1 41 1136699882 4 3 42 2130185384 3 1 43 992239050 0 5 44 2250903111 0 1 45 1544429724 3 2 46 1591091660 3 3 47 2511657707 2 4 48 1065770984 2 4 49 2412763405 4 4 50 1834447239 4 2 51 360289337 0 4 52 2449452027 1 1 53 3370425396 2 1 54 3109103043 0 3 55 55 seed 1009 56 56 57 57 Sequential 58 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%58 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 59 59 60 60 Concurrent 61 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%62 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%63 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%64 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%61 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 62 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 63 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 64 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 65 65 66 prng(t) prng(t,5)prng(t,0,5)67 8333105 1 268 1989339636 4 569 266970699 3 270 1928130121 3 471 1351003938 4 572 1624164922 4 373 363429604 1 274 3355083174 1175 214422584 1 176 2266729947 1 277 3649702519 2 478 2250875012 2 479 4184653025 1 380 2640851227 2 581 206468178 2 382 2600873108 1 383 3007574582 3 384 394476790 0 285 1312145388 1 586 2989081290 2 466 prng(t) prng(t,5) prng(t,0,5) 67 130161 1 1 68 4074541490 0 0 69 927506267 0 3 70 1991273445 1 3 71 669918146 2 3 72 519546860 1 1 73 1136699882 4 3 74 2130185384 3 1 75 992239050 0 5 76 2250903111 0 1 77 1544429724 3 2 78 1591091660 3 3 79 2511657707 2 4 80 1065770984 2 4 81 2412763405 4 4 82 1834447239 4 2 83 360289337 0 4 84 2449452027 1 1 85 3370425396 2 1 86 3109103043 0 3 87 87 seed 1009 88 88 89 89 Sequential 90 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%90 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 91 91 92 92 Concurrent 93 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%94 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%95 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%96 trials 100000000 buckets 100000 min 8 73 max 1140 avg 1000.0 std 31.3 rstd 3.1%93 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 94 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 95 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% 96 trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2% -
tests/.expect/nested_function.x64.txt
r0348fd8 rd99a716 1 total 801 total 155 -
tests/.expect/nested_function.x86.txt
r0348fd8 rd99a716 1 total 551 total 105 -
tests/PRNG.cfa
r0348fd8 rd99a716 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
r0348fd8 rd99a716 1 producer total value is 241502 consumer total value is 241501 producer total value is 44280 2 consumer total value is 44280 -
tests/concurrent/pthread/.expect/bounded_buffer.x86.txt
r0348fd8 rd99a716 1 producer total value is 59402 consumer total value is 59401 producer total value is 45060 2 consumer total value is 45060
Note:
See TracChangeset
for help on using the changeset viewer.