| Index: test/unittests/compiler-dispatcher/compiler-dispatcher-tracer-unittest.cc
|
| diff --git a/test/unittests/compiler-dispatcher/compiler-dispatcher-tracer-unittest.cc b/test/unittests/compiler-dispatcher/compiler-dispatcher-tracer-unittest.cc
|
| index 997765ff83248b3a4f27a82787548406d8f60a4a..21ffe76210a57d32531e54aeeb3f21997eaac493 100644
|
| --- a/test/unittests/compiler-dispatcher/compiler-dispatcher-tracer-unittest.cc
|
| +++ b/test/unittests/compiler-dispatcher/compiler-dispatcher-tracer-unittest.cc
|
| @@ -8,16 +8,16 @@
|
| namespace v8 {
|
| namespace internal {
|
|
|
| -TEST(CompilerDispatcherTracerTest, EstimateZeroWithoutSamples) {
|
| +TEST(CompilerDispatcherTracerTest, EstimateWithoutSamples) {
|
| CompilerDispatcherTracer tracer(nullptr);
|
|
|
| EXPECT_EQ(0.0, tracer.EstimatePrepareToParseInMs());
|
| - EXPECT_EQ(0.0, tracer.EstimateParseInMs(0));
|
| - EXPECT_EQ(0.0, tracer.EstimateParseInMs(42));
|
| + EXPECT_EQ(1.0, tracer.EstimateParseInMs(0));
|
| + EXPECT_EQ(1.0, tracer.EstimateParseInMs(42));
|
| EXPECT_EQ(0.0, tracer.EstimateFinalizeParsingInMs());
|
| EXPECT_EQ(0.0, tracer.EstimatePrepareToCompileInMs());
|
| - EXPECT_EQ(0.0, tracer.EstimateCompileInMs(0));
|
| - EXPECT_EQ(0.0, tracer.EstimateCompileInMs(42));
|
| + EXPECT_EQ(1.0, tracer.EstimateCompileInMs(0));
|
| + EXPECT_EQ(1.0, tracer.EstimateCompileInMs(42));
|
| EXPECT_EQ(0.0, tracer.EstimateFinalizeCompilingInMs());
|
| }
|
|
|
| @@ -36,7 +36,7 @@ TEST(CompilerDispatcherTracerTest, Average) {
|
| TEST(CompilerDispatcherTracerTest, SizeBasedAverage) {
|
| CompilerDispatcherTracer tracer(nullptr);
|
|
|
| - EXPECT_EQ(0.0, tracer.EstimateParseInMs(100));
|
| + EXPECT_EQ(1.0, tracer.EstimateParseInMs(100));
|
|
|
| // All three samples parse 100 units/ms.
|
| tracer.RecordParse(1.0, 100);
|
|
|