test/nashorn/script/basic/octane-payload.js
changeset 47216 71c04702a3d5
parent 26980 381b7cf1729a
equal deleted inserted replaced
47215:4ebc2e2fb97c 47216:71c04702a3d5
       
     1 /*
       
     2  * Copyright (c) 2010, 2014, Oracle and/or its affiliates. All rights reserved.
       
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
       
     4  *
       
     5  * This code is free software; you can redistribute it and/or modify it
       
     6  * under the terms of the GNU General Public License version 2 only, as
       
     7  * published by the Free Software Foundation.
       
     8  *
       
     9  * This code is distributed in the hope that it will be useful, but WITHOUT
       
    10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
       
    11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
       
    12  * version 2 for more details (a copy is included in the LICENSE file that
       
    13  * accompanied this code).
       
    14  *
       
    15  * You should have received a copy of the GNU General Public License version
       
    16  * 2 along with this work; if not, write to the Free Software Foundation,
       
    17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
       
    18  *
       
    19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
       
    20  * or visit www.oracle.com if you need additional information or have any
       
    21  * questions.
       
    22  */
       
    23 
       
    24 /**
       
    25  * @subtest
       
    26  */
       
    27 
       
    28 function initZlib() {
       
    29     zlib = new BenchmarkSuite('zlib', [152815148], [
       
    30                             new Benchmark('zlib', false, true, 10,
       
    31                                   runZlib, undefined, tearDownZlib, null, 3)]);
       
    32 }
       
    33 
       
    34 var tests = [
       
    35     {name:"box2d",         files:["box2d.js"],                         suite:"Box2DBenchmark"},
       
    36     {name:"code-load",     files:["code-load.js"],                     suite:"CodeLoad"},
       
    37     {name:"crypto",        files:["crypto.js"],                        suite:"Crypto"},
       
    38     {name:"deltablue",     files:["deltablue.js"],                     suite:"DeltaBlue"},
       
    39     {name:"earley-boyer",  files:["earley-boyer.js"],                  suite:"EarleyBoyer"},
       
    40     {name:"gbemu",         files:["gbemu-part1.js", "gbemu-part2.js"], suite:"GameboyBenchmark"},
       
    41     {name:"mandreel",      files:["mandreel.js"],                      suite:"MandreelBenchmark"},
       
    42     {name:"navier-stokes", files:["navier-stokes.js"],                 suite:"NavierStokes"},
       
    43     {name:"pdfjs",         files:["pdfjs.js"],                         suite:"PdfJS",                cleanUpIteration: function() { canvas_logs = []; }},
       
    44     {name:"raytrace",      files:["raytrace.js"],                      suite:"RayTrace"},
       
    45     {name:"regexp",        files:["regexp.js"],                        suite:"RegExpSuite"},
       
    46     {name:"richards",      files:["richards.js"],                      suite:"Richards"},
       
    47     {name:"splay",         files:["splay.js"],                         suite:"Splay"},
       
    48     {name:"typescript",    files:["typescript.js", "typescript-input.js", "typescript-compiler.js"], suite:"typescript"},
       
    49     //zlib currently disabled - requires read
       
    50     {name:"zlib",          files:["zlib.js", "zlib-data.js"], suite:"zlib", before:initZlib}
       
    51 ];
       
    52 
       
    53 var dir = (typeof(__DIR__) == 'undefined') ? "test/script/basic/" : __DIR__;
       
    54 
       
    55 // TODO: why is this path hard coded when it's defined in project properties?
       
    56 var path = dir + "../external/octane/";
       
    57 var base = path + "base.js";
       
    58