From 49a4ced79c31c8d0316140d3c5780c90dbee23e7 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Fri, 10 Jul 2020 17:03:39 +0200 Subject: [PATCH] tools/fast: fix commit link and enable -prod --- cmd/tools/fast/fast.v | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/cmd/tools/fast/fast.v b/cmd/tools/fast/fast.v index 41b043c8ef..12180b8ac9 100644 --- a/cmd/tools/fast/fast.v +++ b/cmd/tools/fast/fast.v @@ -42,7 +42,7 @@ fn main() { return } */ - last_commits := exec('git log --pretty=format:"%h" -n 20').split('\n')//.reverse() + last_commits := exec('git log --pretty=format:"%h" -n 20').split('\n') // Fetch all unprocessed commits (commits after the last processed commit) mut commits := []string{} println('last_commit="$commit_hash"') @@ -60,8 +60,7 @@ fn main() { println('\n${i + 1}/$commits.len Benchmarking commit $commit "$message"') // Build an optimized V println(' Building vprod...') - //exec('v -o $vdir/vprod -prod $vdir/cmd/v') - exec('v -o $vdir/vprod $vdir/cmd/v') + exec('v -o $vdir/vprod -prod $vdir/cmd/v') diff1 := measure('$vdir/vprod -cc clang -o v.c $vdir/cmd/v', 'v.c') diff2 := measure('$vdir/vprod -cc clang -o v2 $vdir/cmd/v', 'v2') diff3 := measure('$vdir/vprod -x64 $vdir/cmd/tools/1mil.v', 'x64 1mil') @@ -74,7 +73,7 @@ fn main() { table = ' ${date.format()} - $commit_hash + $commit $message ${diff1}ms ${diff2}ms