go-llvm / llgo

LLVM-based compiler for Go
Other
1.25k stars 81 forks source link

Teach analyze.R to tolerate zeros in the benchmark output #200

Closed pcc closed 10 years ago

pcc commented 10 years ago

GCC can apparently execute some benchmarks in 0.00 ns/op, probably by means of eliminating the benchmark loop. This caused problems for our R script because it takes the log of the ratio, and of course log(0) = -Inf. This change simply modifies the script to ignore zeros in its input.

axw commented 10 years ago

LGTM