~ubuntu-branches/ubuntu/wily/julia/wily

« back to all changes in this revision

Viewing changes to test/perf/shootout/perf.jl

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2013-11-17 19:32:52 UTC
  • mfrom: (1.1.12)
  • Revision ID: package-import@ubuntu.com-20131117193252-tkrpclguqqebqa35
Tags: 0.2.0+dfsg-3
testsuite-i386.patch: loosen the numerical precision for yet another test.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
include("../perfutil.jl")
2
2
 
 
3
#If running from .. directory, include "shootout/" path to data file
 
4
rpath(filename::String) = string(contains(pwd(), "shootout") ? "" : "shootout/", filename)
 
5
 
3
6
include("binary_trees.jl")
4
7
@timeit binary_trees(10) "binary_trees" "Allocate and deallocate many many binary trees"
5
8
 
10
13
@timeit fasta(100) "fasta" "Generate and write random DNA sequences"
11
14
 
12
15
include("k_nucleotide.jl")
13
 
@timeit k_nucleotide("shootout/knucleotide-input.txt") "k_nucleotide" "Hashtable update and k-nucleotide strings"
 
16
@timeit k_nucleotide(rpath("knucleotide-input.txt")) "k_nucleotide" "Hashtable update and k-nucleotide strings"
14
17
 
15
18
include("mandelbrot.jl")
16
 
@timeit mandelbrot(200, "shootout/mandelbrot-output-julia.txt") "mandelbrot" "Generate Mandelbrot set portable bitmap file"
 
19
@timeit mandelbrot(200, rpath("mandelbrot-output-julia.txt")) "mandelbrot" "Generate Mandelbrot set portable bitmap file"
17
20
 
18
21
include("meteor_contest.jl")
19
22
@timeit1 meteor_contest() "meteor_contest" "Search for solutions to shape packing puzzle"
31
34
@timeit pidigits(1000) "pidigits" "Streaming arbitrary-precision arithmetic"
32
35
 
33
36
include("regex_dna.jl")
34
 
@timeit regex_dna("shootout/regexdna-input.txt") "regex_dna" "Match DNA 8-mers and substitute nucleotides for IUB codes"
 
37
@timeit regex_dna(rpath("regexdna-input.txt")) "regex_dna" "Match DNA 8-mers and substitute nucleotides for IUB codes"
35
38
 
36
39
include("revcomp.jl")
37
 
@timeit revcomp("shootout/revcomp-input.txt") "revcomp" "Read DNA sequences - write their reverse-complement"
 
40
@timeit revcomp(rpath("revcomp-input.txt")) "revcomp" "Read DNA sequences - write their reverse-complement"
38
41
 
39
42
include("spectralnorm.jl")
40
43
@timeit spectralnorm() "spectralnorm" "Eigenvalue using the power method"