Onelinetest 1.0.15
dotnet add package Onelinetest --version 1.0.15
NuGet\Install-Package Onelinetest -Version 1.0.15
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Onelinetest" Version="1.0.15" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Onelinetest" Version="1.0.15" />
<PackageReference Include="Onelinetest" />
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Onelinetest --version 1.0.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Onelinetest, 1.0.15"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Onelinetest@1.0.15
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Onelinetest&version=1.0.15
#tool nuget:?package=Onelinetest&version=1.0.15
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
ReadMe
This lib was updated to nuget
How to use this lib?
Usally I use this code in RoslynPad.
#r "nuget: Onelinetest, 1.0.15" // import
using static Gwang.Test.OneLine; // using
// use it like this
test(i=>{
// some test code
});
// or execute testing code Parallel
testc(i=>{
// some test code
});
// or start a NoGC Test.(It is easier to understand the memory allocation.)
// 方便了解内存分配,但是一般情况下性能会变差.
testngc(i=>{
// some test code
});
// ps.The memory occupied by GC in parallel mode is multiplied.
// 并行情况下,内存分配可能是翻倍的
testcngc(i=>{
// some test code
});
And it's output just like:
Normal:
SingleCore+WithGC runs: 126 million times, Elapsed: 421.5045 milliseconds, Memory usage: -1028kb, GC Requested Mem: 6kb.
Concurrent+NoneGC runs: 126 million times, Elapsed: 135.6544 milliseconds, Memory usage: kb, GC Requested Mem: 72kb.
Local Culture == 2052:
单核+有GC执行: 1.3亿次, 耗时: 422.3958毫秒, 内存: -1028.00kb, GC内存: 6.00kb.
并发+无GC执行: 1.3亿次, 耗时: 131.5853毫秒, 内存: 204.00kb, GC内存: 72.00kb.
So, it is very simple to use. Hope you like it!
Also, give me a star ⭐ if possible 🤗.
Version history:
| version | contents |
|---|---|
| 1.0.1 | 最原始的简单版本.<br>The primary simple version. |
| 1.0.4 | 添加了循环变量.<br>Add an itor number for Action. |
| 1.0.8 | 增加了语言环境识别, 除了2052显示简体中文,其他显示英文.<br>Add local Culture recognition, 2502 uses Chinese output, other english. |
| 1.0.11 | 增加了禁用GC模式(一般情况下性能会变差), 便于了解内存分配(比如zeroGC编程的时候).<br> Add NoGC mod(worse performance), it is easier to understand the memory allocation(for example as zeroGC programing). |
| 1.0.13 | 改进输出文本.<br>A little Improve for the output text. |
| 1.0.14 | 修改RoslynPad19/20Dump函数兼容,增加LinqPad.Dump函数调用.<br>Fix: RoslynPad19/20 dump method, add: LinqPad.Dump() method. |
| 1.0.15 | fix. |
And here is All the source code.
this project follow:
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 is compatible. net6.0-android was computed. net6.0-ios was computed. net6.0-maccatalyst was computed. net6.0-macos was computed. net6.0-tvos was computed. net6.0-windows was computed. net7.0 was computed. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net6.0
- No dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Fix.