From ff730bd3a449f6269d2c0eccd08fa90a6e17a238 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20K=C3=BChnel?= Date: Wed, 25 Mar 2020 09:14:00 +0100 Subject: [PATCH] removed unused benchmark.ps1 --- scripts/benchmark.ps1 | 49 ------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 scripts/benchmark.ps1 diff --git a/scripts/benchmark.ps1 b/scripts/benchmark.ps1 deleted file mode 100644 index ddcbfd0..0000000 --- a/scripts/benchmark.ps1 +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright 2019 Google LLC - -# Licensed under the the Apache License v2.0 with LLVM Exceptions (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at - -# https://llvm.org/LICENSE.txt - -# 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. - -# The script will benchmark the windows build steps. -# It can be used to optimize the build performance. - -param( - [Parameter(Mandatory=$true)][string]$WORKDIR -) - -. ${PSScriptRoot}\common.ps1 -function timeit() { - param( - [scriptblock] $cmd - ) - Write-Host "Running $cmd..." - $secs=Measure-Command @cmd | Select-Object -Property TotalSeconds - if ($lastexitcode -ne 0) { - Write-Error "$cmd failed!" - } - Write-Host "$cmd ran for $($secs.TotalSeconds)" - #TODO: make this an absolute path! - Add-Content benchmark.txt "$cmd : $($secs.TotalSeconds)" -} - -Write-Host "Deleting work dir: $WORKDIR" -& cmd /c rd /s/q $WORKDIR | Out-Null -& cmd /c rd /s/q benchmark.txt | Out-Null -timeit {git clone --depth 1 https://github.com/llvm/llvm-project $WORKDIR} -Set-Location $WORKDIR -timeit {git pull} - -timeit {& $PSScriptRoot\run_cmake.ps1} -timeit {& $PSScriptRoot\run_ninja.ps1 all} -timeit {& $PSScriptRoot\run_ninja.ps1 check-all} -# re-run to get time for tests without compilation -timeit {& $PSScriptRoot\run_ninja.ps1 check-all} -timeit {& cmd /c rd/s/q $WORKDIR}