1 #
   2 # Copyright (c) 2005, 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 # @test
  25 #
  26 # @summary The Serialization benchmark test.  This script is only
  27 #          used to run the test under JTREG.
  28 #
  29 # @build bench.BenchInfo bench.HtmlReporter bench.Util bench.Benchmark 
  30 # @build bench.Reporter bench.XmlReporter bench.ConfigFormatException 
  31 # @build bench.Harness bench.TextReporter
  32 # @build bench.serial.BooleanArrays bench.serial.Booleans
  33 # @build bench.serial.ByteArrays bench.serial.Bytes bench.serial.CharArrays
  34 # @build bench.serial.Chars bench.serial.ClassDesc bench.serial.Cons
  35 # @build bench.serial.CustomDefaultObjTrees bench.serial.CustomObjTrees
  36 # @build bench.serial.DoubleArrays bench.serial.Doubles
  37 # @build bench.serial.ExternObjTrees bench.serial.FloatArrays
  38 # @build bench.serial.Floats bench.serial.GetPutFieldTrees
  39 # @build bench.serial.IntArrays bench.serial.Ints bench.serial.LongArrays
  40 # @build bench.serial.Longs bench.serial.Main bench.serial.ObjArrays
  41 # @build bench.serial.ObjTrees bench.serial.ProxyArrays
  42 # @build bench.serial.ProxyClassDesc bench.serial.RepeatObjs
  43 # @build bench.serial.ReplaceTrees bench.serial.ShortArrays
  44 # @build bench.serial.Shorts bench.serial.SmallObjTrees
  45 # @build bench.serial.StreamBuffer bench.serial.Strings
  46 #
  47 # @run shell/timeout=1800 runSerialBench.sh
  48 #
  49 # @author Mike Warres, Nigel Daley
  50 
  51 echo "Starting serialization benchmark "
  52 
  53 $TESTJAVA/bin/java \
  54     ${TESTVMOPTS} \
  55     -cp $TESTCLASSES \
  56     bench.serial.Main \
  57     -c $TESTSRC/bench/serial/jtreg-config &
  58