vxquery-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From prest...@apache.org
Subject [07/18] git commit: Added license and option to run a single query.
Date Thu, 13 Mar 2014 19:21:38 GMT
Added license and option to run a single query.


Project: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/commit/8b354a96
Tree: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/tree/8b354a96
Diff: http://git-wip-us.apache.org/repos/asf/incubator-vxquery/diff/8b354a96

Branch: refs/heads/prestonc/hash_join
Commit: 8b354a96819b1d622269dea68d34a7c91391337a
Parents: d90258f
Author: Preston Carman <prestonc@apache.org>
Authored: Tue Mar 4 15:52:55 2014 -0800
Committer: Preston Carman <prestonc@apache.org>
Committed: Tue Mar 4 15:52:55 2014 -0800

----------------------------------------------------------------------
 .../noaa-ghcn-daily/scripts/run_benchmark.sh    | 27 ++++++++++++++++++--
 1 file changed, 25 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-vxquery/blob/8b354a96/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/run_benchmark.sh
----------------------------------------------------------------------
diff --git a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/run_benchmark.sh
b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/run_benchmark.sh
index ff34a88..8417660 100644
--- a/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/run_benchmark.sh
+++ b/vxquery-benchmark/src/main/resources/noaa-ghcn-daily/scripts/run_benchmark.sh
@@ -1,9 +1,29 @@
+#!/bin/bash
+#
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+# 
+#      http://www.apache.org/licenses/LICENSE-2.0
+# 
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+
 # Run all the queries and save a log. 
 # First argument: Supply the folder which houses all the queries (recursive).
 # Second argument: adds options to the VXQuery CLI.
 #
 # run_benchmark.sh ./noaa-ghcn-daily/benchmarks/local_speed_up/queries/
 # run_benchmark.sh ./noaa-ghcn-daily/benchmarks/local_speed_up/queries/ "-client-net-ip-address
169.235.27.138"
+# run_benchmark.sh ./noaa-ghcn-daily/benchmarks/local_speed_up/queries/ "" q03
 #
 
 if [ -z "${1}" ]
@@ -14,7 +34,10 @@ fi
 
 for j in $(find ${1} -name '*.xq')
 do
-	echo "Running query: ${j}"
-	time sh ./vxquery-cli/target/appassembler/bin/vxq ${j} ${2} -timing -showquery -frame-size
1000000 -repeatexec 10 > ${j}.log 2>&1
+	if [ -z "${3}" ] || [[ "${j}" =~ "${3}" ]] 
+	then
+		echo "Running query: ${j}"
+		time sh ./vxquery-cli/target/appassembler/bin/vxq ${j} ${2} -timing -showquery -frame-size
1000000 -repeatexec 10 > ${j}.log 2>&1
+	fi;
 done
 


Mime
View raw message