Skip to content

Commit 06f4676

Browse files
committed
Fixed bugs in HugeArray and FixedBuffer benchmarks.
1 parent 0987bfe commit 06f4676

File tree

5 files changed

+20
-8
lines changed

5 files changed

+20
-8
lines changed

jemalloc.Api/jemalloc.Api.csproj

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
99
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1010
<PackageId>jemalloc.NET</PackageId>
11-
<Version>0.2.0-alpha</Version>
11+
<Version>0.2.1-alpha</Version>
1212
<Authors>Allister Beharry</Authors>
1313
<Company />
1414
<Product>jemalloc.NET</Product>
15-
<AssemblyVersion>0.2.0.0</AssemblyVersion>
16-
<FileVersion>0.2.0.0</FileVersion>
15+
<AssemblyVersion>0.2.1.0</AssemblyVersion>
16+
<FileVersion>0.2.1.0</FileVersion>
1717
<PackageProjectUrl>https://github.com/allisterb/jemalloc.NET</PackageProjectUrl>
1818
<PackageLicenseUrl>https://github.com/allisterb/jemalloc.NET/LICENSE</PackageLicenseUrl>
1919
<RepositoryUrl>https://github.com/allisterb/jemalloc.NET</RepositoryUrl>

jemalloc.Benchmarks/Benchmarks/FixedBufferVsManagedArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public void FillFixedBufferWithCreate()
8989
nativeArray.Free();
9090
}
9191

92-
[GlobalCleanup(Target = nameof(FillFixedBufferWithCreate))]
92+
[GlobalCleanup(Target = nameof(FillFixedBuffer))]
9393
public void FillValidateAndCleanup()
9494
{
9595
InfoThis();

jemalloc.Benchmarks/Benchmarks/HugeNativeVsManagedArray.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ public void FillHugeNativeArrayWithCreate()
9494
hugeArray = null;
9595
}
9696

97-
[GlobalCleanup(Target = nameof(FillHugeNativeArrayWithCreate))]
97+
[GlobalCleanup(Target = nameof(FillHugeNativeArray))]
9898
public void CleanupFillArray()
9999
{
100100
InfoThis();

jemalloc.Benchmarks/Benchmarks/VectorVsISPC.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,17 @@
22
using System.Collections.Generic;
33
using System.Text;
44

5+
using BenchmarkDotNet.Attributes;
6+
using BenchmarkDotNet.Order;
7+
8+
59
namespace jemalloc.Benchmarks.Benchmarks
610
{
711
public class VectorVsISPC : JemBenchmark<float, int>
812
{
13+
public int ArraySize => Parameter;
14+
15+
#region Mandelbrot
16+
#endregion
917
}
1018
}

jemalloc.Cli/jemalloc.Cli.csproj

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,17 @@
55
<TargetFramework>netcoreapp2.0</TargetFramework>
66
<Platforms>AnyCPU;x64</Platforms>
77
<AssemblyName>jemalloc.Cli</AssemblyName>
8-
<AssemblyVersion>0.2.0.0</AssemblyVersion>
9-
<FileVersion>0.2.0.0</FileVersion>
10-
<Version>0.2.0-alpha</Version>
8+
<AssemblyVersion>0.2.1.0</AssemblyVersion>
9+
<FileVersion>0.2.1.0</FileVersion>
10+
<Version>0.2.1-alpha</Version>
1111
<Authors>Allister Beharry</Authors>
1212
<Company />
1313
<Product>jemalloc.NET</Product>
1414
<PackageId>jemalloc CLI</PackageId>
15+
<Description>Native memory manager for .NET</Description>
16+
<PackageLicenseUrl>https://github.com/allisterb/jemalloc.NET/LICENSE</PackageLicenseUrl>
17+
<PackageProjectUrl>https://github.com/allisterb/jemalloc.NET</PackageProjectUrl>
18+
<RepositoryUrl>https://github.com/allisterb/jemalloc.NET</RepositoryUrl>
1519
</PropertyGroup>
1620

1721
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">

0 commit comments

Comments
 (0)