Home
last modified time | relevance | path

Searched refs:avg (Results 1 – 3 of 3) sorted by relevance

/system/extras/tests/schedtest/
Dschedtest.c30 long avg = 0; in main() local
38 avg += usec; in main()
42 avg /= 1000; in main()
43 printf("max %ld\tavg %ld\n", max, avg); in main()
45 avg = 0; in main()
/system/extras/micro_bench/
Dmicro_bench.cpp139 static inline double computeRunningAvg(double avg, double running_avg, size_t cur_idx) { in computeRunningAvg() argument
140 return (running_avg / (cur_idx + 1)) * cur_idx + (avg / (cur_idx + 1)); in computeRunningAvg()
143 static inline double computeRunningSquareAvg(double avg, double square_avg, size_t cur_idx) { in computeRunningSquareAvg() argument
144 return (square_avg / (cur_idx + 1)) * cur_idx + (avg / (cur_idx + 1)) * avg; in computeRunningSquareAvg()
151 …inline void printIter(uint64_t time_ns, const char *name, size_t size, size_t copies, double avg) { in printIter() argument
153 name, copies, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printIter()
185 …r(uint64_t time_ns, const char *name, size_t size, size_t copies, size_t num_buffers, double avg) { in printColdIter() argument
187 name, copies, num_buffers, size, (double)time_ns/NS_PER_SEC, avg/1024.0); in printColdIter()
204 double avg; \
209 avg = COMPUTE_AVG; \
[all …]
/system/core/storaged/tests/
Dstoraged_test.cpp134 double avg = mean(nums); in standard_deviation() local
136 sum += ((double)i - avg) * ((double)i - avg); in standard_deviation()