repo.or.cz
/
haiku.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
vfs: check userland buffers before reading them.
[haiku.git]
/
src
/
tests
/
system
/
benchmarks
/
compile_bench.sh
blob
07bf6018e105485be436a88c5296e4bf2f03fd0b
1
#!/bin/sh
2
3
testDir
=/
tmp
/
compile_bench
4
rm
-rf
$testDir
5
mkdir
-p
$testDir
6
cd
$testDir
7
8
cat
<< EOF > hello_world.cpp
9
#include <stdio.h>
10
11
int
12
main()
13
{
14
printf("Hello world!\n");
15
return 0;
16
}
17
18
EOF
19
20
compile_all
()
21
{
22
for
f
in
$
(
seq
100
);
do
23
echo -n
.
24
g
++
-o
$f ${f}
.cpp
25
done
26
}
27
28
for
f
in
$
(
seq
100
);
do
29
cp
hello_world.cpp
${f}
.cpp
30
done
31
32
time
compile_all
33
34
rm
-rf
$testDir