vfs: check userland buffers before reading them.
[haiku.git] / src / tests / system / benchmarks / compile_bench.sh
blob07bf6018e105485be436a88c5296e4bf2f03fd0b
1 #!/bin/sh
3 testDir=/tmp/compile_bench
4 rm -rf $testDir
5 mkdir -p $testDir
6 cd $testDir
8 cat << EOF > hello_world.cpp
9 #include <stdio.h>
11 int
12 main()
14 printf("Hello world!\n");
15 return 0;
18 EOF
20 compile_all()
22 for f in $(seq 100); do
23 echo -n .
24 g++ -o $f ${f}.cpp
25 done
28 for f in $(seq 100); do
29 cp hello_world.cpp ${f}.cpp
30 done
32 time compile_all
34 rm -rf $testDir