benchmarks: Added multiplier for small JSON files
authorLucas Bajolet <r4pass@hotmail.com>
Wed, 16 Dec 2015 16:50:53 +0000 (11:50 -0500)
committerLucas Bajolet <r4pass@hotmail.com>
Thu, 17 Dec 2015 15:33:51 +0000 (10:33 -0500)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

benchmarks/json/inputs/multiply_gov.sh [new file with mode: 0755]
benchmarks/json/inputs/multiply_twitter.sh [new file with mode: 0755]

diff --git a/benchmarks/json/inputs/multiply_gov.sh b/benchmarks/json/inputs/multiply_gov.sh
new file mode 100755 (executable)
index 0000000..03eeac4
--- /dev/null
@@ -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 (executable)
index 0000000..00619ae
--- /dev/null
@@ -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