home *** CD-ROM | disk | FTP | other *** search
/ Frozen Fish 1: Amiga / FrozenFish-Apr94.iso / bbs / alib / d1xx / d156 / flex.lha / Flex / CommonFiles / Timings < prev    next >
Text File  |  1988-10-02  |  857b  |  34 lines

  1. flex vs. lex timings for a C tokenizer which includes keywords:
  2.  
  3. Generation times:
  4.  
  5.     lex        83.0 secs
  6.     flex         3.9
  7.     flex -cfe    7.1    # uncompressed table, equivalence classes
  8.     flex -cf    15.0    # uncompressed table, no equivalence classes
  9.  
  10. Scanner object file sizes:
  11.  
  12.     lex       41.0K bytes
  13.     flex        9.4K
  14.     flex -cfe  49.6K
  15.     flex -cf  126.5K
  16.  
  17. Running times on a 28,088 line input (685K characters):
  18.  
  19.     lex       29.8 secs
  20.     flex       19.3
  21.     flex -cfe   9.0
  22.     flex -cf    7.8
  23.  
  24. The timings were made on a Sun 3/60.  All times are user + system CPU time,
  25. and don't include hashing of identifiers.
  26.  
  27. Summary:
  28.  
  29.     For about the same sized scanner, you get a factor of 3 in performance.
  30.     For a 30% faster scanner, you get a scanner 1/4th the size, and it's
  31.     generated in 1/20th the time.
  32.     For a scanner that's 3 times larger, you get a factor of 3.8 in
  33.     performance.
  34.