2
0
mirror of https://github.com/esiur/esiur-dotnet.git synced 2026-04-29 06:48:41 +00:00

Gvwie updated

This commit is contained in:
2026-04-09 16:36:05 +03:00
parent 15479288cc
commit ae524f577a
9 changed files with 575 additions and 509 deletions
+16 -2
View File
@@ -5,13 +5,27 @@ using MessagePack;
var e = GroupInt32Codec.Encode(new int[] {-12000, 15000, -1, 32760 });
var test = IntArrayGenerator.GenerateInt32(5000, GeneratorPattern.Uniform);
var aligned = GroupInt32Codec.Encode(test, true);
var nonAligned = GroupInt32Codec.Encode(test, false);
var result1 = GroupInt32Codec.Decode(aligned);
var result2 = GroupInt32Codec.Decode(nonAligned);
if (result1.SequenceEqual(result2))
Console.WriteLine($"Passed {aligned.Length}");
if (result1.SequenceEqual(test))
Console.WriteLine($"Passed {nonAligned.Length}");
MessagePack.MessagePackSerializer.DefaultOptions = MessagePackSerializerOptions.Standard
.WithCompression(MessagePackCompression.None); // optional; remove if you want raw size
var ints = new IntArrayRunner();
IntArrayGenerator.InitRng();
ints.Run();
//IntArrayGenerator.InitRng();
//ints.Run();
IntArrayGenerator.InitRng();
ints.RunChart();