|
@@ -659,31 +659,6 @@ namespace Jint.Tests.Runtime
|
|
|
Assert.Equal("14141414141414141414141414141414141414141414141414", NumberPrototype.ToFractionBase(0.375, 5));
|
|
|
}
|
|
|
|
|
|
- [Fact]
|
|
|
- public void ShouldComputeFastDtoaFaster()
|
|
|
- {
|
|
|
- const int iterations = 100000;
|
|
|
-
|
|
|
- var sw = new Stopwatch();
|
|
|
- string result = "";
|
|
|
- double d = 0.2388906159889881;
|
|
|
- long standard, fastDtoa;
|
|
|
-
|
|
|
- sw.Restart();
|
|
|
- for (int i = 0; i < iterations; i++)
|
|
|
- {
|
|
|
- result = FastDtoa.NumberToString(d);
|
|
|
- }
|
|
|
- Console.WriteLine("{0}: {1}", result, fastDtoa = sw.ElapsedMilliseconds);
|
|
|
-
|
|
|
- sw.Restart();
|
|
|
- for (int i = 0; i < iterations; i++)
|
|
|
- {
|
|
|
- result = d.ToString("r");
|
|
|
- }
|
|
|
- Console.WriteLine("{0}: {1}", result, standard = sw.ElapsedMilliseconds);
|
|
|
- }
|
|
|
-
|
|
|
[Fact]
|
|
|
public void ShouldInvokeAFunctionValue()
|
|
|
{
|