repos
/
benchmark
/ annotate_shade
summary
|
shortlog
|
log
|
tree
|
commit
|
commitdiff
|
headdiff
|
annotate
|
headblob
|
headfilediff
|
filehistory
normal
|
plain
|
shade
|
zebra
initial import
Annotate for file benchmark.cpp
2009-05-25 tobias
1
#include "benchmark.h"
14:59:32 '
2
'
3
#include <QByteArray>
'
4
'
5
static QByteArray array("foobar");
'
6
'
7
extern "C" {
'
8
'
9
CL_SMOKE_BENCHMARK_EXPORT char
'
10
cl_smoke_benchmark_byte_array_size(size_t iterations)
'
11
{
'
12
char a;
'
13
for(size_t i=0; i< iterations; i++)
'
14
a += array.at(0);
'
15
'
16
return a;
'
17
}
'
18
'
19
} // extern "C"