From: Lucas Bajolet Date: Wed, 16 Dec 2015 16:50:53 +0000 (-0500) Subject: benchmarks: Added multiplier for small JSON files X-Git-Tag: v0.8~28^2~1 X-Git-Url: http://nitlanguage.org benchmarks: Added multiplier for small JSON files Signed-off-by: Lucas Bajolet --- 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