-
Notifications
You must be signed in to change notification settings - Fork 5.5k
NewtR not a good benchmark #5956
Copy link
Copy link
Closed as not planned
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItest-bugProblem in test source code (most likely)Problem in test source code (most likely)
Milestone
Metadata
Metadata
Assignees
Labels
area-CodeGen-coreclrCLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMICLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMItest-bugProblem in test source code (most likely)Problem in test source code (most likely)
Type
Fields
Give feedbackNo fields configured for issues without a type.
There are a few odd things about NewR. We should consider fixing them.
Because
x0is a ref param, the first call intoInnersets it to the root value on the first iteration, and all subsequent iterations of that call and all iterations of subsequent calls immediately confirm that the value is the root and exit without doing work. So we're mainly timing how long it takes to evaluateFF.If one sets
x0 = 1.0before callingInnerthen it does the same amount of work per call. If you set it to 1.0 inside then the iterations insideInneralso do similar work.There's also something off with the
iflagsetting. One would expect one flag value to indicate proper convergence and another to indicate numerical breakdown, but there's only the one value.NewR also fails to do output validation.
category:correctness
theme:testing
skill-level:intermediate
cost:small
impact:small