RecyclableLongList.ConvertAll implemented.
This commit is contained in:
1 parent
1f7603fe08
commit
2012f51b6e
5 files changed
+63
-30
No files matched your search
@@ -40,13 +40,13 @@ namespace Recyclable.Collections.Compatibility.List.Benchmarks
|
||||
DoNothing.With(converted);
|
||||
}
|
||||
|
||||
// public void RecyclableLongList_ConvertAll()
|
||||
// {
|
||||
// var data = TestObjects;
|
||||
// var list = TestObjectsAsRecyclableLongList;
|
||||
// var dataCount = TestObjectCountForSlowMethods;
|
||||
// using RecyclableList<long> converted = list.ConvertAll(static (item) => (long)item);
|
||||
// DoNothing(converted);
|
||||
// }
|
||||
public void RecyclableLongList_ConvertAll()
|
||||
{
|
||||
var data = TestObjects;
|
||||
var list = TestObjectsAsRecyclableLongList;
|
||||
var dataCount = TestObjectCountForSlowMethods;
|
||||
using RecyclableLongList<long> converted = list.ConvertAll(static (item) => (long)item);
|
||||
DoNothing.With(converted);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -13,10 +13,10 @@ namespace Recyclable.Collections.Compatibility.List.Benchmarks
|
||||
BenchmarkRunner.Run(new[]
|
||||
{
|
||||
//typeof(BinarySearchBenchmarks),
|
||||
typeof(BinarySearchBenchmarksBestAndWorstCasesWhenConstrainedRange),
|
||||
//typeof(BinarySearchBenchmarksBestAndWorstCasesWhenConstrainedRange),
|
||||
//typeof(BinarySearchValueLowerThanFirstItemBenchmarks),
|
||||
//typeof(BinarySearchValueHigherThanFirstItemBenchmarks),
|
||||
//typeof(ConvertAllBenchmarks),
|
||||
typeof(ConvertAllBenchmarks),
|
||||
//typeof(ExistsBenchmarks),
|
||||
//typeof(FindBenchmarks),
|
||||
//typeof(FindAllBenchmarks),
|
||||
|
||||
+4
-3
@@ -6,13 +6,14 @@ namespace Recyclable.Collections.Compatibility.List.Benchmarks
|
||||
|
||||
public partial class RecyclableCollectionsCompatibilityListBenchmarks : DataDrivenBenchmarksBase<CollectionsBenchmarksSource>
|
||||
{
|
||||
[Params(CollectionsBenchmarksSource.Array)]
|
||||
[Params(CollectionsBenchmarksSource.List)]
|
||||
public override CollectionsBenchmarksSource BaseDataType { get => base.BaseDataType; set => base.BaseDataType = value; }
|
||||
|
||||
[Params(
|
||||
CollectionsBenchmarksSource.Array,
|
||||
//CollectionsBenchmarksSource.List,
|
||||
//CollectionsBenchmarksSource.PooledList,
|
||||
//CollectionsBenchmarksSource.RecyclableList,
|
||||
CollectionsBenchmarksSource.PooledList,
|
||||
CollectionsBenchmarksSource.RecyclableList,
|
||||
CollectionsBenchmarksSource.RecyclableLongList
|
||||
)]
|
||||
public override CollectionsBenchmarksSource DataType { get => base.DataType; set => base.DataType = value; }
|
||||
|
||||
Reference in new issue
Block a user