]> git.ipfire.org Git - thirdparty/zstd.git/commitdiff
make automated-benchmarking faster
authorYann Collet <cyan@fb.com>
Wed, 8 Sep 2021 22:12:28 +0000 (15:12 -0700)
committerYann Collet <cyan@fb.com>
Wed, 8 Sep 2021 22:12:28 +0000 (15:12 -0700)
by employing parallel compilation of object files.

tests/automated_benchmarking.py

index 458bda4517e7e6dd3a51274f7860f56281fbe0ea..bd995b198efb7361a1b78e988f600b79b90c7046 100644 (file)
@@ -87,7 +87,7 @@ def clone_and_build(build):
             git clone {github_url} zstd-{user}-{sha} &&
             cd zstd-{user}-{sha} &&
             {checkout_command}
-            make &&
+            make -j &&
             cd ../
         """.format(
                 user=build["user"],
@@ -100,7 +100,7 @@ def clone_and_build(build):
         )
         return "zstd-{user}-{sha}/zstd".format(user=build["user"], sha=build["hash"])
     else:
-        os.system("cd ../ && make && cd tests")
+        os.system("cd ../ && make -j && cd tests")
         return "../zstd"