From f3e780ffbdd43856abf6d62ac294fb13c0a06d39 Mon Sep 17 00:00:00 2001 From: Lucas Bajolet Date: Wed, 16 Dec 2015 11:50:53 -0500 Subject: [PATCH] benchmarks: Added multiplier for small JSON files Signed-off-by: Lucas Bajolet --- benchmarks/json/inputs/multiply_gov.sh | 21 +++++++++++++++++++++ benchmarks/json/inputs/multiply_twitter.sh | 21 +++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100755 benchmarks/json/inputs/multiply_gov.sh create mode 100755 benchmarks/json/inputs/multiply_twitter.sh diff --git a/benchmarks/json/inputs/multiply_gov.sh b/benchmarks/json/inputs/multiply_gov.sh new file mode 100755 index 0000000..03eeac4 --- /dev/null +++ b/benchmarks/json/inputs/multiply_gov.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# This file is part of NIT ( http://www.nitlanguage.org ). +# +# Licensed 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. + +echo "[" > big_gov_data.json +for i in $(seq 10); do + test "$i" != "1" && echo "," >> big_gov_data.json + cat gov_data.json >> big_gov_data.json +done +echo "]" >> big_gov_data.json diff --git a/benchmarks/json/inputs/multiply_twitter.sh b/benchmarks/json/inputs/multiply_twitter.sh new file mode 100755 index 0000000..00619ae --- /dev/null +++ b/benchmarks/json/inputs/multiply_twitter.sh @@ -0,0 +1,21 @@ +#!/bin/bash +# This file is part of NIT ( http://www.nitlanguage.org ). +# +# Licensed 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. + +echo "[" > big_twitter.json +for i in $(seq 100); do + test "$i" != "1" && echo "," >> big_twitter.json + cat twitter.json >> big_twitter.json +done +echo "]" >> big_twitter.json -- 1.7.9.5