tools/fast: test hello world
parent
13ee2ad670
commit
7a29d959ce
|
@ -31,7 +31,8 @@ fn main() {
|
|||
println('Measuring...')
|
||||
diff1 := measure('$vdir/vprod -cc clang -o v.c $vdir/v.v')
|
||||
diff2 := measure('$vdir/vprod -cc clang -o v2 $vdir/v.v')
|
||||
diff3 := measure('$vdir/vprod -cc clang -o v2 -fast $vdir/v.v')
|
||||
diff3 := measure('$vdir/vprod -o v2 -fast $vdir/v.v')
|
||||
diff4 := measure('$vdir/vprod -cc clang $vdir/examples/hello_world.v')
|
||||
//println('Building V took ${diff}ms')
|
||||
commit_date := exec('git log -n1 --pretty="format:%at"')
|
||||
message := exec('git log -n1 --pretty="format:%s"')
|
||||
|
@ -46,6 +47,7 @@ fn main() {
|
|||
<td>${diff1}ms</td>
|
||||
<td>${diff2}ms</td>
|
||||
<td>${diff3}ms</td>
|
||||
<td>${diff4}ms</td>
|
||||
</tr>\n' +
|
||||
table.trim_space()
|
||||
out.writeln(table)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
<html>
|
||||
<head>
|
||||
<title>fast.vlang.io</title>
|
||||
<title>Is V still fast?</title>
|
||||
<style>
|
||||
*, body {
|
||||
font-family: Menlo,Monospace,'Courier New';
|
||||
|
@ -25,9 +25,10 @@ Source code: <a target=blank href='https://github.com/vlang/v/blob/master/tools/
|
|||
<tr>
|
||||
<td></td>
|
||||
<td></td>
|
||||
<td style='width:400px'>Commit message</td>
|
||||
<td style='width:130px'>v -o v.c</td>
|
||||
<td style='width:130px'>v -o v</td>
|
||||
<td style='width:130px'>v -o v -fast</td>
|
||||
<td style='width:400px'></td>
|
||||
<td style='width:120px'>v -o v.c</td>
|
||||
<td style='width:120px'>v -o v</td>
|
||||
<td style='width:120px'>v -o v -fast</td>
|
||||
<td style='width:120px'>v hello_world.v</td>
|
||||
</tr>
|
||||
|
||||
|
|
Loading…
Reference in New Issue