Changeset 1793


Ignore:
Timestamp:
Dec 18, 2011, 4:01:02 AM (7 years ago)
Author:
vla24
Message:

Added some text files for wdc. updated performance test.

Location:
proto/SymbolTable
Files:
4 added
6 edited

Legend:

Unmodified
Added
Removed
  • proto/SymbolTable/build_wcd.sh

    r1791 r1793  
    1 cd src && make wcd && python run_wcd.py ../test/test_files/wcd_blank.txt ../test/test_files/wcd_the_republic_by_plato.txt && cd ..
     1cd src && make wcd && python run_wcd.py ../test/test_files/wcd_pride_and_prejudice.txt ../test/test_files/wcd_the_republic_by_plato.txt && python run_wcd.py ../test/test_files/wcd_pride_and_prejudice.txt ../test/test_files/wcd_tale_of_two_cities.txt && python run_wcd.py ../test/test_files/wcd_pride_and_prejudice.txt ../test/test_files/wcd_a_sailor_of_king_george.txt && python run_wcd.py ../test/test_files/wcd_pride_and_prejudice.txt ../test/test_files/wcd_metamorphosis.txt  && python run_wcd.py ../test/test_files/wcd_pride_and_prejudice.txt ../test/test_files/wcd_bio_papers.txt && cd ..
  • proto/SymbolTable/common_definitions.h

    r1791 r1793  
    88#define SIMD_type BitBlock
    99#define DEBUG 0
    10 #define PRINT_SYMBOL_DISTRIBUTION 1
    11 #define PRINT_DICTIONARY_INFO 0 
     10#define PRINT_SYMBOL_DISTRIBUTION 0
     11#define PRINT_DICTIONARY_INFO 0
    1212#define SEGMENT_BLOCKS 12
    1313#define BUFFER_SIZE (BLOCK_SIZE * SEGMENT_BLOCKS)
  • proto/SymbolTable/src/perf_script_wcd.py

    r1790 r1793  
    77programs = ['wcd']
    88#TODO: Change the testfiles
    9 dictionaryfiles = ['test_dictionary.txt', 'test_dictionary.txt', 'test_dictionary.txt']
    10 testfiles = ['wcd_blank.txt', 'wcd_metamorphosis.txt', 'wcd_a_sailor_of_king_george.txt']
     9dictionaryfiles = ['wcd_the_mansion.txt', 'wcd_alice_in_wonderland.txt', 'wcd_pride_and_prejudice.txt']
     10testfiles = ['wcd_the_republic_by_plato.txt', 'wcd_tale_of_two_cities.txt', 'wcd_a_sailor_of_king_george.txt', 'wcd_metamorphosis.txt', 'wcd_bio_papers.txt']
    1111
    1212def run_test():     
  • proto/SymbolTable/symbol_stat_gatherer.h

    r1787 r1793  
    114114        }
    115115    }
     116
     117    if (!v.size())
     118    {
     119        return 0;
     120    }
    116121    return result;
    117122}
     
    140145        }
    141146    }
     147
     148    if (!v.size())
     149    {
     150        return 0;
     151    }
    142152    return result;
    143153}
  • proto/SymbolTable/symtab_pbgs_div_template.cpp

    r1792 r1793  
    6767    PERF_SEC_DESTROY(parser_timer);
    6868
    69     fclose(infile);
    70     fclose(outfile);
    71 
    7269#if PRINT_SYMBOL_DISTRIBUTION
    7370//    print_GIDS();
    7471    pbgs_symbol_table.Print_Symbol_Table_Distribution();
    7572#endif
     73
     74    fclose(infile);
     75    fclose(outfile);
    7676
    7777        return(0);
  • proto/SymbolTable/wcd_common_functions.h

    r1786 r1793  
    3131            max = *it;
    3232        }
     33    }
     34
     35    if (!arr.size())
     36    {
     37        return 0;
    3338    }
    3439    return max;
Note: See TracChangeset for help on using the changeset viewer.