mirror of
https://github.com/lidarr/Lidarr
synced 2024-12-27 01:57:21 +00:00
added missing file
This commit is contained in:
parent
ace98831c7
commit
bb677259e1
1 changed files with 43 additions and 0 deletions
|
@ -0,0 +1,43 @@
|
|||
using Marr.Data.Reflection;
|
||||
using NUnit.Framework;
|
||||
using NzbDrone.Core.Datastore;
|
||||
using NzbDrone.Core.Tv;
|
||||
|
||||
namespace NzbDrone.Core.Test.Datastore.ReflectionStrategyFixture
|
||||
{
|
||||
[TestFixture]
|
||||
public class Benchmarks
|
||||
{
|
||||
private const int iterations = 5000000;
|
||||
private object _target;
|
||||
private IReflectionStrategy _simpleReflectionStrategy;
|
||||
|
||||
[SetUp]
|
||||
public void Setup()
|
||||
{
|
||||
// _simpleReflectionStrategy = new DelegateReflectionStrategy();
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void clr_reflection_test()
|
||||
{
|
||||
_target = new Series();
|
||||
|
||||
var del = _simpleReflectionStrategy.BuildSetter(typeof(Series), "Title");
|
||||
|
||||
for (int i = 0; i < iterations; i++)
|
||||
{
|
||||
del(_target, "TestTile");
|
||||
//_simpleReflectionStrategy.SetFieldValue(_target, "Title", "TestTile");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private void SetField()
|
||||
{
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue