This is an automated email from the ASF dual-hosted git repository.

ptupitsyn pushed a commit to branch ignite-27278
in repository https://gitbox.apache.org/repos/asf/ignite-3.git

commit 10e620eb33187f1a5aa76b07d89c147082dc4066
Author: Pavel Tupitsyn <[email protected]>
AuthorDate: Tue Dec 23 16:27:47 2025 +0200

    wip bench
---
 .../Sql/ResultSetBenchmarks.cs                     | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git 
a/modules/platforms/dotnet/Apache.Ignite.Benchmarks/Sql/ResultSetBenchmarks.cs 
b/modules/platforms/dotnet/Apache.Ignite.Benchmarks/Sql/ResultSetBenchmarks.cs
index b08121a878c..209f9622cd3 100644
--- 
a/modules/platforms/dotnet/Apache.Ignite.Benchmarks/Sql/ResultSetBenchmarks.cs
+++ 
b/modules/platforms/dotnet/Apache.Ignite.Benchmarks/Sql/ResultSetBenchmarks.cs
@@ -26,6 +26,7 @@ namespace Apache.Ignite.Benchmarks.Sql
     using BenchmarkDotNet.Jobs;
     using Ignite.Sql;
     using Ignite.Table;
+    using Ignite.Table.Mapper;
     using Tests;
 
     /// <summary>
@@ -151,6 +152,18 @@ namespace Apache.Ignite.Benchmarks.Sql
             }
         }
 
+        [Benchmark]
+        public async Task ObjectMappingWithMapperToListAsync()
+        {
+            await using var resultSet = await _client!.Sql.ExecuteAsync(null, 
new RecMapper(), "select 1", CancellationToken.None);
+            var rows = await resultSet.ToListAsync();
+
+            if (rows.Count != 1012)
+            {
+                throw new Exception("Wrong count");
+            }
+        }
+
         [Benchmark]
         public async Task PrimitiveMappingToListAsync()
         {
@@ -164,5 +177,14 @@ namespace Apache.Ignite.Benchmarks.Sql
         }
 
         private sealed record Rec(int Id);
+
+        private sealed class RecMapper : IMapper<Rec>
+        {
+            public void Write(Rec obj, ref RowWriter rowWriter, IMapperSchema 
schema) =>
+                throw new NotImplementedException();
+
+            public Rec Read(ref RowReader rowReader, IMapperSchema schema) =>
+                new(rowReader.ReadInt()!.Value);
+        }
     }
 }

Reply via email to