Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision Next revisionBoth sides next revision | ||
howto:time [2012/03/14 12:53] – created schroeter | howto:time [2014/01/03 15:45] – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Measure execution time ====== | ====== Measure execution time ====== | ||
- | The benefit of using a standard programming language such as Perl is that one can use standard libraries for basic needs. Here is an example showing how to benchmark two different convex hull algorithms/ | + | The benefit of using a standard programming language such as Perl is that one can use standard libraries for basic needs. For example, one can measure the runtime/ |
< | < | ||
use Benchmark qw(:all); | use Benchmark qw(:all); | ||
Line 7: | Line 7: | ||
$r=rand_sphere(3, | $r=rand_sphere(3, | ||
</ | </ | ||
- | This code does not work in a script file (.pl) because of polymake' | + | This code does not work in a [[scripting: |
< | < | ||
use Benchmark qw(:all); | use Benchmark qw(:all); | ||
Line 23: | Line 23: | ||
} | } | ||
</ | </ | ||
- | or | + | or that |
< | < | ||
use Benchmark qw(:all); | use Benchmark qw(:all); |