Home
last modified time | relevance | path

Searched refs:benchmark (Results 1 - 25 of 221) sorted by relevance

123456789

/third_party/musl/Benchmark/musl/
H A Dlibc_math.cpp36 static void Bm_function_Copysignl_Allpositive(benchmark::State &state) in Bm_function_Copysignl_Allpositive()
41 benchmark::DoNotOptimize(copysignl(x, y)); in Bm_function_Copysignl_Allpositive()
45 static void Bm_function_Copysignl_Allnegative(benchmark::State &state) in Bm_function_Copysignl_Allnegative()
50 benchmark::DoNotOptimize(copysignl(x, y)); in Bm_function_Copysignl_Allnegative()
54 static void Bm_function_Copysignl_Np(benchmark::State &state) in Bm_function_Copysignl_Np()
59 benchmark::DoNotOptimize(copysignl(x, y)); in Bm_function_Copysignl_Np()
63 static void Bm_function_Copysignl_Pn(benchmark::State &state) in Bm_function_Copysignl_Pn()
68 benchmark::DoNotOptimize(copysignl(x, y)); in Bm_function_Copysignl_Pn()
73 static void Bm_function_Fmodl(benchmark::State &state) in Bm_function_Fmodl()
78 benchmark in Bm_function_Fmodl()
[all...]
H A Dlibc_stdio.cpp62 static void Bm_function_Fopen_read(benchmark::State &state) in Bm_function_Fopen_read()
69 benchmark::DoNotOptimize(fp); in Bm_function_Fopen_read()
78 static void Bm_function_Fopen_write(benchmark::State &state) in Bm_function_Fopen_write()
85 benchmark::DoNotOptimize(fp); in Bm_function_Fopen_write()
94 static void Bm_function_Fopen_append(benchmark::State &state) in Bm_function_Fopen_append()
101 benchmark::DoNotOptimize(fp); in Bm_function_Fopen_append()
110 static void Bm_function_Fopen_rplus(benchmark::State &state) in Bm_function_Fopen_rplus()
117 benchmark::DoNotOptimize(fp); in Bm_function_Fopen_rplus()
126 static void Bm_function_Fopen_wplus(benchmark::State &state) in Bm_function_Fopen_wplus()
133 benchmark in Bm_function_Fopen_wplus()
[all...]
H A Dlibc_errno.cpp24 static void Bm_function_Strerror_noerror(benchmark::State &state) in Bm_function_Strerror_noerror()
28 benchmark::DoNotOptimize(strerror(e)); in Bm_function_Strerror_noerror()
33 static void Bm_function_Strerror_enoent(benchmark::State &state) in Bm_function_Strerror_enoent()
37 benchmark::DoNotOptimize(strerror(e)); in Bm_function_Strerror_enoent()
42 static void Bm_function_Strerror_enomem(benchmark::State &state) in Bm_function_Strerror_enomem()
46 benchmark::DoNotOptimize(strerror(e)); in Bm_function_Strerror_enomem()
51 static void Bm_function_Strerror_eacces(benchmark::State &state) in Bm_function_Strerror_eacces()
55 benchmark::DoNotOptimize(strerror(e)); in Bm_function_Strerror_eacces()
60 static void Bm_function_Strerror_eexist(benchmark::State &state) in Bm_function_Strerror_eexist()
64 benchmark in Bm_function_Strerror_eexist()
[all...]
H A Dlibc_ctype.cpp28 static void Bm_function_Tolower_a(benchmark::State &state) in Bm_function_Tolower_a()
32 benchmark::DoNotOptimize(tolower(c)); in Bm_function_Tolower_a()
37 static void Bm_function_Tolower_A(benchmark::State &state) in Bm_function_Tolower_A()
41 benchmark::DoNotOptimize(tolower(c)); in Bm_function_Tolower_A()
46 static void Bm_function_Tolower_all_ascii(benchmark::State &state) in Bm_function_Tolower_all_ascii()
50 benchmark::DoNotOptimize(tolower(i)); in Bm_function_Tolower_all_ascii()
56 static void Bm_function_Isspace_space(benchmark::State &state) in Bm_function_Isspace_space()
59 benchmark::DoNotOptimize(isspace(' ')); in Bm_function_Isspace_space()
64 static void Bm_function_Isspace_all_ascii(benchmark::State &state) in Bm_function_Isspace_all_ascii()
68 benchmark in Bm_function_Isspace_all_ascii()
[all...]
H A Dlibc_time.cpp31 static void Bm_function_Nanosleep_0ns(benchmark::State &state) in Bm_function_Nanosleep_0ns()
36 benchmark::DoNotOptimize(nanosleep(&req, &rem)); in Bm_function_Nanosleep_0ns()
40 static void Bm_function_Nanosleep_10ns(benchmark::State &state) in Bm_function_Nanosleep_10ns()
45 benchmark::DoNotOptimize(nanosleep(&req, &rem)); in Bm_function_Nanosleep_10ns()
49 static void Bm_function_Nanosleep_100ns(benchmark::State &state) in Bm_function_Nanosleep_100ns()
54 benchmark::DoNotOptimize(nanosleep(&req, &rem)); in Bm_function_Nanosleep_100ns()
59 static void Bm_function_Tzset(benchmark::State &state) in Bm_function_Tzset()
65 static void Bm_function_Clock_nanosleep_realtime(benchmark::State &state) in Bm_function_Clock_nanosleep_realtime()
70 benchmark::DoNotOptimize(clock_nanosleep(CLOCK_REALTIME, 0, &req, &rem)); in Bm_function_Clock_nanosleep_realtime()
74 static void Bm_function_Clock_nanosleep_realtime_raw(benchmark
[all...]
H A Dlibc_unistd.cpp48 static void PrepareArgsPipe2(benchmark::internal::Benchmark* b) in PrepareArgsPipe2()
55 void ReadWriteTest(benchmark::State& state, bool isRead) in ReadWriteTest()
85 void PreadWriteTest(benchmark::State &state, Fn f, bool buffered) in PreadWriteTest()
103 static void Bm_function_Getpid(benchmark::State &state) in Bm_function_Getpid()
108 benchmark::DoNotOptimize(pid); in Bm_function_Getpid()
113 static void Bm_function_Geteuid(benchmark::State &state) in Bm_function_Geteuid()
118 benchmark::DoNotOptimize(uid); in Bm_function_Geteuid()
123 static void Bm_function_Close(benchmark::State &state) in Bm_function_Close()
132 benchmark::DoNotOptimize(close(fd)); in Bm_function_Close()
139 static void Bm_function_Usleep(benchmark
[all...]
H A Dlibc_fcntl.cpp29 static void Bm_function_Fcntl_getfl(benchmark::State &state) in Bm_function_Fcntl_getfl()
40 benchmark::DoNotOptimize(ret); in Bm_function_Fcntl_getfl()
46 static void Bm_function_Fcntl_setfl(benchmark::State &state) in Bm_function_Fcntl_setfl()
58 benchmark::DoNotOptimize(ret); in Bm_function_Fcntl_setfl()
70 static void Bm_function_Fcntl_setlkw(benchmark::State &state) in Bm_function_Fcntl_setlkw()
92 benchmark::DoNotOptimize(ret); in Bm_function_Fcntl_setlkw()
98 static void Bm_function_Fcntl_dupfd(benchmark::State &state) in Bm_function_Fcntl_dupfd()
109 benchmark::DoNotOptimize(dupfd); in Bm_function_Fcntl_dupfd()
118 static void Bm_function_Fcntl_setlk(benchmark::State &state) in Bm_function_Fcntl_setlk()
140 benchmark in Bm_function_Fcntl_setlk()
[all...]
H A Dlibc_stdlib.cpp59 static void PrepareArgsMemalign(benchmark::internal::Benchmark* b)
116 static void Bm_function_Strtod(benchmark::State &state)
124 benchmark::DoNotOptimize(strtod(str, &ptr));
128 static void Bm_function_Strtof(benchmark::State &state)
136 benchmark::DoNotOptimize(strtof(str, &ptr));
140 static void Bm_function_Strtold(benchmark::State &state)
148 benchmark::DoNotOptimize(strtold(str, &ptr));
154 static void Bm_function_Qsortint(benchmark::State &state)
164 static void Bm_function_Qsortdouble(benchmark::State &state)
174 static void Bm_function_Qsortstring(benchmark
[all...]
H A Dlibc_pthread.cpp29 static void Bm_function_pthread_mutexattr_settype(benchmark::State &state) in Bm_function_pthread_mutexattr_settype()
34 benchmark::DoNotOptimize(pthread_mutexattr_settype(&mutexAttr, PTHREAD_MUTEX_NORMAL)); in Bm_function_pthread_mutexattr_settype()
39 static void Bm_function_pthread_mutex_trylock_fast(benchmark::State &state) in Bm_function_pthread_mutex_trylock_fast()
54 static void Bm_function_pthread_mutex_trylock_errchk(benchmark::State &state) in Bm_function_pthread_mutex_trylock_errchk()
69 static void Bm_function_pthread_mutex_trylock_rec(benchmark::State &state) in Bm_function_pthread_mutex_trylock_rec()
84 static void Bm_function_pthread_mutex_trylock_pi_fast(benchmark::State &state) in Bm_function_pthread_mutex_trylock_pi_fast()
99 static void Bm_function_pthread_mutex_trylock_pi_errorcheck(benchmark::State &state) in Bm_function_pthread_mutex_trylock_pi_errorcheck()
114 static void Bm_function_pthread_mutex_trylock_pi_rec(benchmark::State &state) in Bm_function_pthread_mutex_trylock_pi_rec()
129 static void Bm_function_pthread_mutex_timedlock_fast(benchmark::State &state) in Bm_function_pthread_mutex_timedlock_fast()
145 static void Bm_function_pthread_mutex_timedlock_errchk(benchmark
[all...]
H A Dlibc_locale.cpp41 static void Bm_function_Setlocale_All(benchmark::State &state) in Bm_function_Setlocale_All()
44 benchmark::DoNotOptimize(setlocale(LC_ALL, nullptr)); in Bm_function_Setlocale_All()
49 static void Bm_function_Setlocale_All1(benchmark::State &state) in Bm_function_Setlocale_All1()
52 benchmark::DoNotOptimize(setlocale(LC_ALL, "C")); in Bm_function_Setlocale_All1()
57 static void Bm_function_Setlocale_All2(benchmark::State &state) in Bm_function_Setlocale_All2()
60 benchmark::DoNotOptimize(setlocale(LC_ALL, "")); in Bm_function_Setlocale_All2()
65 static void Bm_function_Setlocale_Collate(benchmark::State &state) in Bm_function_Setlocale_Collate()
68 benchmark::DoNotOptimize(setlocale(LC_COLLATE, nullptr)); in Bm_function_Setlocale_Collate()
73 static void Bm_function_Setlocale_Ctype(benchmark::State &state) in Bm_function_Setlocale_Ctype()
76 benchmark in Bm_function_Setlocale_Ctype()
[all...]
H A Dlibc_syscall.cpp41 static void Bm_function_Syscall_getpid(benchmark::State &state) in Bm_function_Syscall_getpid()
46 benchmark::DoNotOptimize(pid); in Bm_function_Syscall_getpid()
51 static void Bm_function_Syscall_gettid(benchmark::State &state) in Bm_function_Syscall_gettid()
56 benchmark::DoNotOptimize(tid); in Bm_function_Syscall_gettid()
61 static void Bm_function_Syscall_adjtimex(benchmark::State &state) in Bm_function_Syscall_adjtimex()
65 benchmark::DoNotOptimize(syscall(SYS_adjtimex, &timeInfo)); in Bm_function_Syscall_adjtimex()
70 static void Bm_function_Syscall_write(benchmark::State &state) in Bm_function_Syscall_write()
77 benchmark::DoNotOptimize(syscall(SYS_write, fp, "Bad Mind", BYTES_WRITTEN)); in Bm_function_Syscall_write()
83 static void Bm_function_Syscall_read(benchmark::State &state) in Bm_function_Syscall_read()
95 benchmark in Bm_function_Syscall_read()
[all...]
/third_party/benchmark/test/
H A Dstring_util_gtest.cc16 EXPECT_EQ(0ul, benchmark::stoul("0", &pos)); in TEST()
21 EXPECT_EQ(7ul, benchmark::stoul("7", &pos)); in TEST()
26 EXPECT_EQ(135ul, benchmark::stoul("135", &pos)); in TEST()
32 EXPECT_EQ(0xFFFFFFFFul, benchmark::stoul("4294967295", &pos)); in TEST()
39 benchmark::stoul("18446744073709551615", &pos)); in TEST()
45 EXPECT_EQ(10ul, benchmark::stoul("1010", &pos, 2)); in TEST()
50 EXPECT_EQ(520ul, benchmark::stoul("1010", &pos, 8)); in TEST()
55 EXPECT_EQ(1010ul, benchmark::stoul("1010", &pos, 10)); in TEST()
60 EXPECT_EQ(4112ul, benchmark::stoul("1010", &pos, 16)); in TEST()
65 EXPECT_EQ(0xBEEFul, benchmark in TEST()
[all...]
H A Dbasic_test.cc2 #include "benchmark/benchmark.h"
6 void BM_empty(benchmark::State& state) { in BM_empty()
9 benchmark::DoNotOptimize(iterations); in BM_empty()
15 void BM_spin_empty(benchmark::State& state) { in BM_spin_empty()
18 benchmark::DoNotOptimize(x); in BM_spin_empty()
25 void BM_spin_pause_before(benchmark::State& state) { in BM_spin_pause_before()
27 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
31 benchmark::DoNotOptimize(i); in BM_spin_pause_before()
38 void BM_spin_pause_during(benchmark
[all...]
H A Ddonotoptimize_assembly_test.cc1 #include <benchmark/benchmark.h>
41 benchmark::DoNotOptimize(Add42(0)); in test_with_rvalue()
48 benchmark::DoNotOptimize(Large{ExternInt, {ExternInt, ExternInt}}); in test_with_large_rvalue()
58 benchmark::DoNotOptimize(NotTriviallyCopyable(ExternInt)); in test_with_non_trivial_rvalue()
66 benchmark::DoNotOptimize(x); in test_with_lvalue()
75 benchmark::DoNotOptimize(L); in test_with_large_lvalue()
86 benchmark::DoNotOptimize(ExtraLargeObj); in test_with_extra_large_lvalue_with_op()
94 benchmark::DoNotOptimize(BigArray); in test_with_big_array_with_op()
102 benchmark in test_with_non_trivial_lvalue()
[all...]
H A Dstatistics_gtest.cc10 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({42, 42, 42, 42}), 42.0); in TEST()
11 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({1, 2, 3, 4}), 2.5); in TEST()
12 EXPECT_DOUBLE_EQ(benchmark::StatisticsMean({1, 2, 5, 10, 10, 14}), 7.0); in TEST()
16 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({42, 42, 42, 42}), 42.0); in TEST()
17 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({1, 2, 3, 4}), 2.5); in TEST()
18 EXPECT_DOUBLE_EQ(benchmark::StatisticsMedian({1, 2, 5, 10, 10}), 5.0); in TEST()
22 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({101, 101, 101, 101}), 0.0); in TEST()
23 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({1, 2, 3}), 1.0); in TEST()
24 EXPECT_DOUBLE_EQ(benchmark::StatisticsStdDev({2.5, 2.4, 3.3, 4.2, 5.1}), in TEST()
29 EXPECT_DOUBLE_EQ(benchmark in TEST()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/
H A Dduration_benchmark.cc23 #include "benchmark/benchmark.h"
35 void BM_Duration_Factory_Nanoseconds(benchmark::State& state) { in BM_Duration_Factory_Nanoseconds()
38 benchmark::DoNotOptimize(absl::Nanoseconds(i)); in BM_Duration_Factory_Nanoseconds()
44 void BM_Duration_Factory_Microseconds(benchmark::State& state) { in BM_Duration_Factory_Microseconds()
47 benchmark::DoNotOptimize(absl::Microseconds(i)); in BM_Duration_Factory_Microseconds()
53 void BM_Duration_Factory_Milliseconds(benchmark::State& state) { in BM_Duration_Factory_Milliseconds()
56 benchmark::DoNotOptimize(absl::Milliseconds(i)); in BM_Duration_Factory_Milliseconds()
62 void BM_Duration_Factory_Seconds(benchmark::State& state) { in BM_Duration_Factory_Seconds()
65 benchmark in BM_Duration_Factory_Seconds()
[all...]
H A Dtime_benchmark.cc29 #include "benchmark/benchmark.h"
37 void BM_Time_Arithmetic(benchmark::State& state) { in BM_Time_Arithmetic()
42 benchmark::DoNotOptimize(t += nano); in BM_Time_Arithmetic()
43 benchmark::DoNotOptimize(t -= sec); in BM_Time_Arithmetic()
52 void BM_Time_Difference(benchmark::State& state) { in BM_Time_Difference()
57 benchmark::DoNotOptimize(diff += end - start); in BM_Time_Difference()
65 // In each "ToDateTime" benchmark we switch between two instants
72 void BM_Time_ToDateTime_Absl(benchmark::State& state) { in BM_Time_ToDateTime_Absl()
80 benchmark in BM_Time_ToDateTime_Absl()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/
H A Dcharconv_benchmark.cc21 #include "benchmark/benchmark.h"
25 void BM_Strtod_Pi(benchmark::State& state) { in BM_Strtod_Pi()
28 benchmark::DoNotOptimize(pi); in BM_Strtod_Pi()
29 benchmark::DoNotOptimize(strtod(pi, nullptr)); in BM_Strtod_Pi()
34 void BM_Absl_Pi(benchmark::State& state) { in BM_Absl_Pi()
38 benchmark::DoNotOptimize(pi); in BM_Absl_Pi()
41 benchmark::DoNotOptimize(v); in BM_Absl_Pi()
46 void BM_Strtod_Pi_float(benchmark::State& state) { in BM_Strtod_Pi_float()
49 benchmark in BM_Strtod_Pi_float()
[all...]
H A Dstring_view_benchmark.cc25 #include "benchmark/benchmark.h"
33 void BM_StringViewFromString(benchmark::State& state) { in BM_StringViewFromString()
42 benchmark::DoNotOptimize(ps); in BM_StringViewFromString()
43 benchmark::DoNotOptimize(psv); in BM_StringViewFromString()
46 benchmark::DoNotOptimize(sv); in BM_StringViewFromString()
59 void DoEqualityComparisons(benchmark::State& state, absl::string_view a, in DoEqualityComparisons()
62 benchmark::DoNotOptimize(a == b); in DoEqualityComparisons()
66 void BM_EqualIdentical(benchmark::State& state) { in BM_EqualIdentical()
72 void BM_EqualSame(benchmark
[all...]
H A Dstr_cat_benchmark.cc20 #include "benchmark/benchmark.h"
26 const char kStringTwo[] = "There was a string benchmark";
28 // We want to include negative numbers in the benchmark, so this function
34 void BM_Sum_By_StrCat(benchmark::State& state) { in BM_Sum_By_StrCat()
44 benchmark::DoNotOptimize(sum); in BM_Sum_By_StrCat()
50 void BM_StrCat_By_snprintf(benchmark::State& state) { in BM_StrCat_By_snprintf()
60 void BM_StrCat_By_Strings(benchmark::State& state) { in BM_StrCat_By_Strings()
65 benchmark::DoNotOptimize(result); in BM_StrCat_By_Strings()
71 void BM_StrCat_By_StringOpPlus(benchmark
174 StrAppendConfig(B* benchmark) StrAppendConfig() argument
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/container/
H A Dinlined_vector_benchmark.cc19 #include "benchmark/benchmark.h"
27 void BM_InlinedVectorFill(benchmark::State& state) { in BM_InlinedVectorFill()
36 benchmark::DoNotOptimize(v); in BM_InlinedVectorFill()
41 void BM_InlinedVectorFillRange(benchmark::State& state) { in BM_InlinedVectorFillRange()
47 benchmark::DoNotOptimize(src); in BM_InlinedVectorFillRange()
49 benchmark::DoNotOptimize(v); in BM_InlinedVectorFillRange()
54 void BM_StdVectorFill(benchmark::State& state) { in BM_StdVectorFill()
63 benchmark::DoNotOptimize(v); in BM_StdVectorFill()
90 void BM_InlinedVectorFillString(benchmark
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/internal/
H A Dmemutil_benchmark.cc20 #include "benchmark/benchmark.h"
28 // We benchmark case-sensitive and case-insensitive versions of
97 void BM_Memmem(benchmark::State& state) { in BM_Memmem()
99 benchmark::DoNotOptimize( in BM_Memmem()
106 void BM_MemmemMedium(benchmark::State& state) { in BM_MemmemMedium()
108 benchmark::DoNotOptimize( in BM_MemmemMedium()
115 void BM_MemmemPathological(benchmark::State& state) { in BM_MemmemPathological()
117 benchmark::DoNotOptimize(absl::strings_internal::memmem( in BM_MemmemPathological()
125 void BM_Memcasemem(benchmark
[all...]
/third_party/benchmark/bindings/python/google_benchmark/
H A Dexample.py14 """Example of Python using C++ benchmark framework.
26 import google_benchmark as benchmark namespace
30 @benchmark.register
36 @benchmark.register
41 @benchmark.register
53 @benchmark.register
57 return # NOTE: You must explicitly return, or benchmark will continue.
62 @benchmark.register
67 # Something to benchmark
73 @benchmark
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/time/internal/cctz/src/
H A Dcctz_benchmark.cc23 #include "benchmark/benchmark.h"
32 void BM_Difference_Days(benchmark::State& state) { in BM_Difference_Days()
36 benchmark::DoNotOptimize(c - epoch); in BM_Difference_Days()
41 void BM_Step_Days(benchmark::State& state) { in BM_Step_Days()
45 benchmark::DoNotOptimize(++c); in BM_Step_Days()
50 void BM_GetWeekday(benchmark::State& state) { in BM_GetWeekday()
53 benchmark::DoNotOptimize(cctz::get_weekday(c)); in BM_GetWeekday()
58 void BM_NextWeekday(benchmark::State& state) { in BM_NextWeekday()
72 benchmark in BM_NextWeekday()
[all...]
/third_party/skia/third_party/externals/abseil-cpp/absl/functional/
H A Dfunction_ref_benchmark.cc19 #include "benchmark/benchmark.h"
28 void FreeFunction() { benchmark::DoNotOptimize(dummy); } in FreeFunction()
31 void operator()() const { benchmark::DoNotOptimize(dummy); } in operator ()()
35 void operator()() const { benchmark::DoNotOptimize(this); } in operator ()()
45 void ConstructAndCallFunctionBenchmark(benchmark::State& state, in ConstructAndCallFunctionBenchmark()
52 void BM_TrivialStdFunction(benchmark::State& state) { in BM_TrivialStdFunction()
58 void BM_TrivialFunctionRef(benchmark::State& state) { in BM_TrivialFunctionRef()
64 void BM_LargeStdFunction(benchmark::State& state) { in BM_LargeStdFunction()
70 void BM_LargeFunctionRef(benchmark
[all...]

Completed in 12 milliseconds

123456789