This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Stats (Ubuntu 22.04, i9-12900H, 64 GB RAM) | |
| // Connected 200000 connections in 00:02:49.2601996 | |
| // Verified connectivity in 00:00:09.1446883 | |
| // Started 8000 connections, 5071.840078796107 conns/sec, total time 00:00:02.1065415 | |
| // Started 199000 connections, 575.1123798345816 conns/sec, total time 00:02:47.4392904 | |
| // Started at 200 MB, ended at 900 MB java heap on server | |
| using System.Diagnostics; | |
| using Apache.Ignite; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import org.apache.ignite.Ignite; | |
| import org.apache.ignite.IgniteCache; | |
| import org.apache.ignite.configuration.CacheConfiguration; | |
| import org.apache.ignite.lang.IgniteBiTuple; | |
| import org.apache.ignite.transactions.Transaction; | |
| import org.apache.ignite.transactions.TransactionConcurrency; | |
| import org.apache.ignite.transactions.TransactionIsolation; | |
| import static org.apache.ignite.cache.CacheAtomicityMode.TRANSACTIONAL; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System.Linq; | |
| using BenchmarkDotNet.Attributes; | |
| /// <summary> | |
| /// 1M, MB Pro M3 | |
| /// | Method | Mean | Error | StdDev | Ratio | | |
| /// |------------ |---------:|--------:|--------:|------:| | |
| /// | TestValType | 530.2 us | 6.94 us | 6.49 us | 0.98 | | |
| /// | TestRefType | 541.1 us | 1.98 us | 1.54 us | 1.00 |. | |
| /// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net9.0</TargetFramework> | |
| <ImplicitUsings>enable</ImplicitUsings> | |
| <Nullable>enable</Nullable> | |
| </PropertyGroup> | |
| <ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net7.0</TargetFramework> | |
| <ImplicitUsings>enable</ImplicitUsings> | |
| <Nullable>enable</Nullable> | |
| </PropertyGroup> | |
| <ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using Docker.DotNet; | |
| using Docker.DotNet.Models; | |
| var client = new DockerClientConfiguration(new Uri("unix:///var/run/docker.sock")).CreateClient(); | |
| await client.System.PingAsync(); | |
| var imagesCreateParameters = new ImagesCreateParameters | |
| { | |
| FromImage = "alpine/git", | |
| Tag = "v2.36.3" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net7.0</TargetFramework> | |
| <ImplicitUsings>enable</ImplicitUsings> | |
| <Nullable>enable</Nullable> | |
| </PropertyGroup> | |
| <ItemGroup> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # See https://devblogs.microsoft.com/dotnet/improving-multiplatform-container-support/ | |
| # 8.0-preview-alpine works too | |
| FROM --platform=$BUILDPLATFORM mcr.microsoft.com/dotnet/sdk:8.0-preview AS build | |
| ARG TARGETARCH | |
| WORKDIR /source | |
| # copy csproj and restore as distinct layers | |
| COPY *.csproj . | |
| RUN dotnet restore -a $TARGETARCH |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| FROM mcr.microsoft.com/dotnet/runtime:8.0-preview AS base | |
| WORKDIR /app | |
| FROM mcr.microsoft.com/dotnet/sdk:8.0-preview AS build | |
| WORKDIR /src | |
| COPY dotnet-arm.csproj . | |
| RUN dotnet restore | |
| COPY . . | |
| RUN dotnet build -c Release -o /app/build |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <Project Sdk="Microsoft.NET.Sdk"> | |
| <PropertyGroup> | |
| <OutputType>Exe</OutputType> | |
| <TargetFramework>net7.0</TargetFramework> | |
| <ImplicitUsings>enable</ImplicitUsings> | |
| <Nullable>enable</Nullable> | |
| </PropertyGroup> | |
| <ItemGroup> |
NewerOlder