Home
last modified time | relevance | path

Searched refs:bench (Results 1 – 2 of 2) sorted by relevance

/system/vold/bench/
Dbenchgen.py128 with open("BenchmarkGen.h", 'w') as bench:
129 print >>bench, """/*
172 print >>bench, "char* buf = (char*) malloc(%d);" % (bufsize)
185 print >>bench, "if (!checkpoint(%d)) return -1;" % (50 + ((i * 50) / total))
192 print >>bench, "int",
198 print >>bench, '%s = TEMP_FAILURE_RETRY(open("file%s", %s%s));' \
205 print >>bench, 'close(%s);' % (handle)
210 … print >>bench, 'TEMP_FAILURE_RETRY(lseek(%s, %s, %s));' % (handle, e.args[1], e.args[2])
215 … print >>bench, 'TEMP_FAILURE_RETRY(lseek(%s, %s, %s));' % (handle, e.args[1], e.args[3])
223 print >>bench, 'TEMP_FAILURE_RETRY(read(%s, buf, %d));' % (handle, count)
[all …]
/system/extras/zram-perf/
Dzram-perf.cpp129 int bench(bool direct) in bench() function
146 bench(1); in main()