We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 40d91cc commit fe5575fCopy full SHA for fe5575f
cmd/tools/fast/fast.v
@@ -59,6 +59,8 @@ fn main() {
59
message := exec('git log --pretty=format:"%s" -n1 $commit')
60
println('\n${i + 1}/$commits.len Benchmarking commit $commit "$message"')
61
// Build an optimized V
62
+ println('Checking out ${commit}...')
63
+ exec('git checkout $commit')
64
println(' Building vprod...')
65
exec('v -o $vdir/vprod -prod $vdir/cmd/v')
66
diff1 := measure('$vdir/vprod -cc clang -o v.c $vdir/cmd/v', 'v.c')
@@ -92,6 +94,7 @@ fn main() {
92
94
res.writeln(footer)
93
95
res.close()
96
}
97
+ exec('git checkout master')
98
os.write_file('last_commit.txt', commits[commits.len-1])?
99
100
0 commit comments