From 0e2dd887174eb0f659d868402c65803c333363a9 Mon Sep 17 00:00:00 2001 From: Bradley White Date: Thu, 31 Aug 2017 17:24:17 -0400 Subject: [PATCH] Change "BaseTime" to "CCTZ" in benchmark names. --- src/benchmarks.cc | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/src/benchmarks.cc b/src/benchmarks.cc index d7356b9d..7cfc07a1 100644 --- a/src/benchmarks.cc +++ b/src/benchmarks.cc @@ -772,7 +772,7 @@ BENCHMARK(BM_Zone_UTCTimeZone); // // The "UTC" variants use UTC instead of the Google/local time zone. -void BM_Time_ToDateTime_BaseTime(benchmark::State& state) { +void BM_Time_ToDateTime_CCTZ(benchmark::State& state) { const cctz::time_zone tz = TestTimeZone(); std::chrono::system_clock::time_point tp = std::chrono::system_clock::from_time_t(1384569027); @@ -784,7 +784,7 @@ void BM_Time_ToDateTime_BaseTime(benchmark::State& state) { benchmark::DoNotOptimize(cctz::convert(tp, tz)); } } -BENCHMARK(BM_Time_ToDateTime_BaseTime); +BENCHMARK(BM_Time_ToDateTime_CCTZ); void BM_Time_ToDateTime_Libc(benchmark::State& state) { // No timezone support, so just use localtime. @@ -803,7 +803,7 @@ void BM_Time_ToDateTime_Libc(benchmark::State& state) { } BENCHMARK(BM_Time_ToDateTime_Libc); -void BM_Time_ToDateTimeUTC_BaseTime(benchmark::State& state) { +void BM_Time_ToDateTimeUTC_CCTZ(benchmark::State& state) { const cctz::time_zone tz = cctz::utc_time_zone(); std::chrono::system_clock::time_point tp = std::chrono::system_clock::from_time_t(1384569027); @@ -812,7 +812,7 @@ void BM_Time_ToDateTimeUTC_BaseTime(benchmark::State& state) { benchmark::DoNotOptimize(cctz::convert(tp, tz)); } } -BENCHMARK(BM_Time_ToDateTimeUTC_BaseTime); +BENCHMARK(BM_Time_ToDateTimeUTC_CCTZ); void BM_Time_ToDateTimeUTC_Libc(benchmark::State& state) { time_t t = 1384569027; @@ -835,7 +835,7 @@ BENCHMARK(BM_Time_ToDateTimeUTC_Libc); // The "UTC" variants use UTC instead of the Google/local time zone. // The "Day0" variants require normalization of the day of month. -void BM_Time_FromDateTime_BaseTime(benchmark::State& state) { +void BM_Time_FromDateTime_CCTZ(benchmark::State& state) { const cctz::time_zone tz = TestTimeZone(); int i = 0; while (state.KeepRunning()) { @@ -848,7 +848,7 @@ void BM_Time_FromDateTime_BaseTime(benchmark::State& state) { } } } -BENCHMARK(BM_Time_FromDateTime_BaseTime); +BENCHMARK(BM_Time_FromDateTime_CCTZ); void BM_Time_FromDateTime_Libc(benchmark::State& state) { // No timezone support, so just use localtime. @@ -876,16 +876,18 @@ void BM_Time_FromDateTime_Libc(benchmark::State& state) { } BENCHMARK(BM_Time_FromDateTime_Libc); -void BM_Time_FromDateTimeUTC_BaseTime(benchmark::State& state) { +void BM_Time_FromDateTimeUTC_CCTZ(benchmark::State& state) { const cctz::time_zone tz = cctz::utc_time_zone(); while (state.KeepRunning()) { benchmark::DoNotOptimize( cctz::convert(cctz::civil_second(2014, 12, 18, 20, 16, 18), tz)); } } -BENCHMARK(BM_Time_FromDateTimeUTC_BaseTime); +BENCHMARK(BM_Time_FromDateTimeUTC_CCTZ); -void BM_Time_FromDateTimeDay0_BaseTime(benchmark::State& state) { +// There is no BM_Time_FromDateTimeUTC_Libc. + +void BM_Time_FromDateTimeDay0_CCTZ(benchmark::State& state) { const cctz::time_zone tz = TestTimeZone(); int i = 0; while (state.KeepRunning()) { @@ -898,7 +900,7 @@ void BM_Time_FromDateTimeDay0_BaseTime(benchmark::State& state) { } } } -BENCHMARK(BM_Time_FromDateTimeDay0_BaseTime); +BENCHMARK(BM_Time_FromDateTimeDay0_CCTZ); void BM_Time_FromDateTimeDay0_Libc(benchmark::State& state) { // No timezone support, so just use localtime.