< Summary

Class:BaselineBenchmarks
Assembly:Benchmarks
File(s):/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/Benchmarks/BaselineBenchmarks.cs
Covered lines:0
Uncovered lines:7
Coverable lines:7
Total lines:27
Line coverage:0% (0 of 7)
Covered branches:0
Total branches:0

Metrics

MethodBranch coverage Crap Score Cyclomatic complexity NPath complexity Sequence coverage
BaseLine()0%6200%

File(s)

/tmp/workspace/unity-renderer/unity-renderer/Assets/Scripts/Benchmarks/BaselineBenchmarks.cs

#LineLine coverage
 1using NUnit.Framework;
 2using Unity.PerformanceTesting;
 3using UnityEngine;
 4
 5public class BaselineBenchmarks
 6{
 7    [Test, Performance]
 8    [Explicit]
 9    [Category("Benchmark")]
 10    public void BaseLine()
 11    {
 012        Measure.Method(() =>
 13               {
 014                   for (int i = 0; i < 1000; i++)
 15                   {
 016                       float sqrt = Mathf.Sqrt(i);
 017                       float log = Mathf.Log(sqrt);
 018                       float pow = Mathf.Pow(log, i);
 19                   }
 020               })
 21               .WarmupCount(3)
 22               .MeasurementCount(10)
 23               .IterationsPerMeasurement(10)
 24               .GC()
 25               .Run();
 026    }
 27}

Methods/Properties

BaseLine()