Benchpress:使用PowerShell轻松进行基准测试

时间:2021-02-22 08:01:38
【文件属性】:
文件名称:Benchpress:使用PowerShell轻松进行基准测试
文件大小:27KB
文件格式:ZIP
更新时间:2021-02-22 08:01:38
PowerShell Benchpress是用于PowerShell的快速​​便捷的基准测试工具包 它可以帮助您编写和管理简单的比较基准。 您可以使用此信息来提高脚本效率。 例如,这是一个快速基准测试,用于确定您应该使用Foreach语句还是foreach对象 Measure-Benchmark -Technique @{ ForeachObject = { 1..100 | Foreach-Object { $_ } } ForeachStatement = { foreach ($n in 1..100) { $n }} } 基准测试附带了许多PowerShell性能实验。 Checkpoint-Benchmark -ModuleName Benchpress
【文件预览】:
Benchpress-master
----Benchpress.format.ps1xml(3KB)
----Get-Benchmark.ps1(13KB)
----Measure-Benchmark.ps1(24KB)
----PowerShellPerformance()
--------Different_Ways_To_Iterate.benchmark.psd1(404B)
--------What_Is_The_Fastest_Way_To_Sort.benchmark.ps1(265B)
--------Random_Number_Generation.benchmark.ps1(1KB)
--------How_Much_Faster_Is_The_Static_Constructor.benchmark.psd1(312B)
--------What_Is_The_Fastest_Way_To_Filter.benchmark.ps1(2KB)
--------Creating_Property_Bags.benchmark.ps1(2KB)
--------ToString_Or_Not_ToString.benchmark.ps1(151B)
--------How_Much_Faster_Is_Piping_To_A_ScriptBlock.benchmark.psd1(700B)
--------What_Is_The_Fastest_Way_To_Concatenate.benchmark.json(636B)
--------README.md(180B)
--------How_Much_Faster_Is_Method_Binding.ps1(421B)
--------How_Much_Faster_Is_Splatting.benchmark.ps1(640B)
--------Different_Ways_To_Set_Many_Variables.benchmark.psd1(1KB)
--------What_Is_The_Fastest_Way_To_Get_All_Loaded_Modules.benchmark.ps1(1KB)
--------Whats_In_A_Quote.benchmark.ps1(404B)
--------Ways_To_Hash_A_File.benchmark.ps1(600B)
--------Should_I_Include_The_System_Namespace.benchmark.ps1(180B)
----en-us()
--------About_Benchpress.help.txt(602B)
----.github()
--------workflows()
----README.md(602B)
----Benchpress.psm1(230B)
----tests()
--------Benchpress.tests.ps1(2KB)
----Checkpoint-Benchmark.ps1(7KB)
----action.yml(3KB)
----Benchpress.ezformat.ps1(2KB)
----azure-pipelines.yml(18KB)
----Benchpress.psd1(523B)

网友评论