gopalshankar / address-sanitizer

Automatically exported from code.google.com/p/address-sanitizer
0 stars 0 forks source link

400.perlbench is slower than 3x with asan #164

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
at clang r176185 400.perlbench has ~3.2x slowdown, even though in the past 
it was around 2.5x.

The profile looks like this:
    38.63%  perlbench_base.  perlbench_base.clang  [.] S_regmatch
     7.24%  perlbench_base.  perlbench_base.clang  [.] S_find_byclass
     4.97%  perlbench_base.  perlbench_base.clang  [.] S_regtry
     2.58%  perlbench_base.  perlbench_base.clang  [.] S_hv_fetch_common
     2.13%  perlbench_base.  perlbench_base.clang  [.] Perl_leave_scope
     2.09%  perlbench_base.  perlbench_base.clang  [.] Perl_runops_standard
     1.98%  perlbench_base.  perlbench_base.clang  [.] Perl_sv_setsv_flags
     1.55%  perlbench_base.  perlbench_base.clang  [.] Perl_pp_entersub
     1.33%  perlbench_base.  perlbench_base.clang  [.] Perl_pp_padsv
     1.32%  perlbench_base.  perlbench_base.clang  [.] Perl_save_alloc
so, this is likely a code gen issue. 
Needs investigation. 

(And, we really need a perf bot!!!)

Original issue reported on code.google.com by konstant...@gmail.com on 28 Feb 2013 at 6:04

GoogleCodeExporter commented 9 years ago
A part of the slowdown is caused by enabling -fsanitize=init-order by default.
This option partially disables the optimization which allowed to not
instrument scalar globals. 
With Clang r179094:
Default: 1382 seconds 
With -fno-sanitize=init-order: 1223 seconds 

Original comment by konstant...@gmail.com on 10 Apr 2013 at 10:19

GoogleCodeExporter commented 9 years ago
FTR, fresh clang's asan (197007) still has very large slowdown on perl: 

       400.perlbench,       350.00,      1285.00,         3.67
           401.bzip2,       474.00,       854.00,         1.80
             403.gcc,       333.00,       613.00,         1.84
             429.mcf,       319.00,       581.00,         1.82
           445.gobmk,       412.00,       888.00,         2.16
           456.hmmer,       357.00,       890.00,         2.49
           458.sjeng,       463.00,      1004.00,         2.17
      462.libquantum,       432.00,       497.00,         1.15
         464.h264ref,       535.00,      1283.00,         2.40
         471.omnetpp,       312.00,       555.00,         1.78
           473.astar,       392.00,       661.00,         1.69
       483.xalancbmk,       222.00,       474.00,         2.14
            433.milc,       396.00,       615.00,         1.55
            444.namd,       377.00,       599.00,         1.59
          447.dealII,       323.00,       622.00,         1.93
          450.soplex,       235.00,       365.00,         1.55
          453.povray,       191.00,       423.00,         2.21
             470.lbm,       265.00,       355.00,         1.34
         482.sphinx3,       489.00,       920.00,         1.88

Original comment by konstant...@gmail.com on 11 Dec 2013 at 6:46