2021-09-23 16:34:51 +02:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
2024-09-24 12:09:02 +02:00
|
|
|
# Copyright 2021-2024 New Vector Ltd.
|
2021-09-23 16:34:51 +02:00
|
|
|
#
|
2024-09-24 12:09:02 +02:00
|
|
|
# SPDX-License-Identifier: AGPL-3.0-only
|
|
|
|
# Please see LICENSE in the repository root for full details.
|
2021-09-23 16:34:51 +02:00
|
|
|
|
|
|
|
if ! command -v gradle-profiler &> /dev/null
|
|
|
|
then
|
|
|
|
echo "gradle-profiler could not be found https://github.com/gradle/gradle-profiler"
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
gradle-profiler \
|
|
|
|
--benchmark \
|
|
|
|
--project-dir . \
|
|
|
|
--scenario-file tools/benchmark/benchmark.profile \
|
|
|
|
--output-dir benchmark-out/output \
|
|
|
|
--gradle-user-home benchmark-out/gradle-home \
|
|
|
|
--warmups 3 \
|
|
|
|
--iterations 3 \
|
|
|
|
$1
|