Changeset d99a716 for tests


Ignore:
Timestamp:
Jan 4, 2023, 1:44:19 PM (3 years ago)
Author:
caparsons <caparson@…>
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.
Message:

Merge branch 'master' of plg.uwaterloo.ca:software/cfa/cfa-cc

Location:
tests
Files:
1 deleted
7 edited

Legend:

Unmodified
Added
Removed
  • tests/.expect/PRNG.x64.txt

    r0348fd8 rd99a716  
    11
    2        PRNG()   PRNG(5)    PRNG(0,5)
    3           861         3            0
    4 10137507171299805328         1            2
    5 12205946788447993741         4            0
    6 16222929371023265189         2            5
    7 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
    2323seed 1009
    2424
    2525Sequential
    26 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
     26trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
    2727
    2828Concurrent
    29 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    30 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    31 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    32 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
     29trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     30trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     31trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     32trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
    3333
    34        prng()   prng(5)    prng(0,5)
    35           861         3            0
    36 10137507171299805328         1            2
    37 12205946788447993741         4            0
    38 16222929371023265189         2            5
    39 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
    5555seed 1009
    5656
    5757Sequential
    58 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
     58trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
    5959
    6060Concurrent
    61 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    62 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    63 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    64 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
     61trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     62trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     63trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     64trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
    6565
    66       prng(t) prng(t,5) prng(t,0,5)
    67           861         3            0
    68 10137507171299805328         1            2
    69 12205946788447993741         4            0
    70 16222929371023265189         2            5
    71 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
    8787seed 1009
    8888
    8989Sequential
    90 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
     90trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
    9191
    9292Concurrent
    93 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    94 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    95 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
    96 trials 100000000 buckets 100000 min 875 max 1138 avg 1000.0 std 31.8 rstd 3.2%
     93trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     94trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     95trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
     96trials 100000000 buckets 100000 min 871 max 1144 avg 1000.0 std 31.6 rstd 3.2%
  • tests/.expect/PRNG.x86.txt

    r0348fd8 rd99a716  
    11
    2        PRNG()   PRNG(5)    PRNG(0,5)
    3       8333105         1            2
    4    1989339636         4            5
    5     266970699         3            2
    6    1928130121         3            4
    7    1351003938         4            5
    8    1624164922         4            3
    9     363429604         1            2
    10    3355083174         1            1
    11     214422584         1            1
    12    2266729947         1            2
    13    3649702519         2            4
    14    2250875012         2            4
    15    4184653025         1            3
    16    2640851227         2            5
    17     206468178         2            3
    18    2600873108         1            3
    19    3007574582         3            3
    20     394476790         0            2
    21    1312145388         1            5
    22    2989081290         2            4
     2                    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
    2323seed 1009
    2424
    2525Sequential
    26 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
     26trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
    2727
    2828Concurrent
    29 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    30 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    31 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    32 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
     29trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     30trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     31trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     32trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
    3333
    34        prng()   prng(5)    prng(0,5)
    35       8333105         1            2
    36    1989339636         4            5
    37     266970699         3            2
    38    1928130121         3            4
    39    1351003938         4            5
    40    1624164922         4            3
    41     363429604         1            2
    42    3355083174         1            1
    43     214422584         1            1
    44    2266729947         1            2
    45    3649702519         2            4
    46    2250875012         2            4
    47    4184653025         1            3
    48    2640851227         2            5
    49     206468178         2            3
    50    2600873108         1            3
    51    3007574582         3            3
    52     394476790         0            2
    53    1312145388         1            5
    54    2989081290         2            4
     34                    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
    5555seed 1009
    5656
    5757Sequential
    58 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
     58trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
    5959
    6060Concurrent
    61 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    62 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    63 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    64 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
     61trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     62trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     63trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     64trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
    6565
    66       prng(t) prng(t,5) prng(t,0,5)
    67       8333105         1            2
    68    1989339636         4            5
    69     266970699         3            2
    70    1928130121         3            4
    71    1351003938         4            5
    72    1624164922         4            3
    73     363429604         1            2
    74    3355083174         1            1
    75     214422584         1            1
    76    2266729947         1            2
    77    3649702519         2            4
    78    2250875012         2            4
    79    4184653025         1            3
    80    2640851227         2            5
    81     206468178         2            3
    82    2600873108         1            3
    83    3007574582         3            3
    84     394476790         0            2
    85    1312145388         1            5
    86    2989081290         2            4
     66                   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
    8787seed 1009
    8888
    8989Sequential
    90 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
     90trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
    9191
    9292Concurrent
    93 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    94 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    95 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
    96 trials 100000000 buckets 100000 min 873 max 1140 avg 1000.0 std 31.3 rstd 3.1%
     93trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     94trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     95trials 100000000 buckets 100000 min 867 max 1135 avg 1000.0 std 31.7 rstd 3.2%
     96trials 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 80
     1total 155
  • tests/.expect/nested_function.x86.txt

    r0348fd8 rd99a716  
    1 total 55
     1total 105
  • tests/PRNG.cfa

    r0348fd8 rd99a716  
    88// Created On       : Wed Dec 29 09:38:12 2021
    99// Last Modified By : Peter A. Buhr
    10 // Last Modified On : Tue Nov 22 22:51:12 2022
    11 // Update Count     : 381
     10// Last Modified On : Wed Dec 21 20:39:59 2022
     11// Update Count     : 406
    1212//
    1313
     
    6060
    6161
    62 unsigned int seed = 1009;
     62size_t seed = 1009;
    6363
    6464thread T1 {};
     
    116116} // dummy
    117117
     118
    118119int main() {
    119120        // 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 );
    121125
    122126        enum { TASKS = 4 };
     
    130134
    131135        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(10, rand() % 5) | nonl;
    136                 sout | wd(13, 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);
    137141        } // for
    138142        sout | sepEnable;
     
    168172
    169173        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 order
    173                 sout | wd(10, prng( prng, 5 )) | nonl;
    174                 sout | wd(13, 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 ));
    175179        } // for
    176180        sout | sepEnable;
     
    203207
    204208        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 order
    208                 sout | wd(10, prng( 5 )) | nonl;
    209                 sout | wd(13, 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 ));
    210214        } // for
    211215        sout | sepEnable;
     
    239243
    240244        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 order
    244                 sout | wd(10, prng( th, 5 )) | nonl;
    245                 sout | wd(13, 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 ));
    246250        } // for
    247251        sout | sepEnable;
     
    266270#endif // 0
    267271//      malloc_stats();
     272        // freelocale( loc );
    268273} // main
    269274
  • tests/concurrent/pthread/.expect/bounded_buffer.x64.txt

    r0348fd8 rd99a716  
    1 producer total value is 24150
    2 consumer total value is 24150
     1producer total value is 44280
     2consumer total value is 44280
  • tests/concurrent/pthread/.expect/bounded_buffer.x86.txt

    r0348fd8 rd99a716  
    1 producer total value is 5940
    2 consumer total value is 5940
     1producer total value is 45060
     2consumer total value is 45060
Note: See TracChangeset for help on using the changeset viewer.