Common classes from dotNetTips.com that can be used with BenchmarkDotNet.
Class library that contains specialized collections for increased performance. For more information about ChunkedList, including benchmarking & performance: https://lab.tagroot.io/Community/Post/ChunkedList
.NET's fastest JSON, JSV and CSV Text Serializers. Fast, Light, Resilient. Benchmarks at: http://servicestack.net/benchmarks/ Includes the String and Stream functionality for all the ServiceStack projects including: - T.Dump() generic extension method for easy dbugging and introspection of types - WebRequest, List, Dictionary and DateTime extensions
DAWG (Directed Acyclic Word Graph) is a data structure for storing and searching large word lists while keeping your memory footprint small and lookups fast. DawgSharp is an open-source C# implementation featuring a linear time graph reduction algorithm and out-of-the-box persistence support. The Dawg class is nearly as fast as a HashSet for lookups and is much, much more memory-efficient (factors of 30x - 40x are not uncommon). In a benchmark application it held two million words while consuming only 2Mbytes of RAM. That's only one byte per word! And it's even less on disk. The Dawg class can be thought of as a read-only Dictionary<string, Value>: it has a ["string"] indexer and implements IEnumerable<KeyValuePair<string, Value>>. One other very useful feature of Dawg (not found in Dictionary) is the ability to quickly find all words that start with a particular prefix: dawg.MatchPrefix("star") could possibly yield "star", "starch", "start", "starting", etc. This package is provided under the terms of the GNU GPL v3. Source code and documentation are available on GitHub: https://github.com/bzaar/DawgSharp. Commercial licenses are also available at http://morpher.co.uk
Unchase Fluent Performance Meter is an open-source and cross-platform .Net Standart 2.0 library is designed for the method’s performance measurement.
A dotnet tool to execute BenchmarkDotNet benchmarks
Bowire Benchmarking rail — performance + load measurement surface. Adds the Benchmarks rail descriptor + per-rail JS fragment to the workbench.
Testing helpers, incl.. Generic Builder to delegate instance creation for testing data using Mocks, Pocos or whatever Resource Finder, simplify getting hold of embedded resources in your tests Benchmark, time how long your code takes, run iterations or time-to-stop benchmarks
1) Unified Concurrency The main mission is to unify usage of heterogeneous synchronization primitives with interface/pattern based Object Oriented approach. Switching between multiple synchronization primitives with one code line change! Agile Development ready solution to synchronization. Easy upgrade from general threading to async/await thanks to the pattern based design! Reduced code complexity. Easy correctness testing. Simplified performance optimization. Currently implemented synchronization primitives cover: - wrapper for the .Net SpinLock, - TicketSpinLock, - Lock replacement of C# lock (Monitor), - wrapper around C# lock (monitor) benchmarking only, - async/await AsyncLock, - async/await AsyncSpinLock, - async/await AsyncTicketSpinLock. https://www.codeproject.com/Articles/1236238/Unified-Concurrency-I-Introduction https://www.codeproject.com/Articles/1237518/Unified-Concurrency-II-benchmarking-methodologies https://www.codeproject.com/Articles/1242156/Unified-Concurrency-III-cross-benchmarking 2) AsyncTesting SequencerUC A strongly typed Sequencer is a powerful threading or async/await based unit testing tool to simplify and test correctness in asynchronous and/or parallel code. The Sequencer allows to simplify control/detection of one or many testing thread flows and allows to deterministically setup testing scenario from unit test method and optionally inject data into the tested code to ensure required state. 3) Concurrent Priority Queues Awaitable Concurrent Priority Queue - Optionally awaitable simple to use Concurrent Priority Queue. https://www.codeproject.com/Articles/1222893/Optionally-Awaitable-Concurrent-Priority-Queue
Benchmarking library for Roslyn components.
Windows only. Adds performance counter support to NBench measurements.
A base class providing a reusable BenchmarkDotNet configuration for benchmark tests.
HttpLoadTesting http load generator web client
1) Unified Concurrency The main mission is to unify usage of heterogeneous synchronization primitives with interface/pattern based Object Oriented approach. Switching between multiple synchronization primitives with one code line change! Agile Development ready solution to synchronization. Easy upgrade from general threading to async/await thanks to the pattern based design! Reduced code complexity. Easy correctness testing. Simplified performance optimization. Currently implemented synchronization primitives cover: - wrapper for the .Net SpinLock, - TicketSpinLock, - Lock replacement of C# lock (Monitor), - wrapper around C# lock (monitor) benchmarking only, - async/await AsyncLock, - async/await AsyncSpinLock, - async/await AsyncTicketSpinLock. https://www.codeproject.com/Articles/1236238/Unified-Concurrency-I-Introduction https://www.codeproject.com/Articles/1237518/Unified-Concurrency-II-benchmarking-methodologies https://www.codeproject.com/Articles/1242156/Unified-Concurrency-III-cross-benchmarking 2) AsyncTesting SequencerUC A strongly typed Sequencer is a powerful threading or async/await based unit testing tool to simplify and test correctness in asynchronous and/or parallel code. The Sequencer allows to simplify control/detection of one or many testing thread flows and allows to deterministically setup testing scenario from unit test method and optionally inject data into the tested code to ensure required state. 3) Concurrent Priority Queues Awaitable Concurrent Priority Queue - Optionally awaitable simple to use Concurrent Priority Queue. https://www.codeproject.com/Articles/1222893/Optionally-Awaitable-Concurrent-Priority-Queue
EonaCat Helpers - Cipher helper - Benchmark helper - Task helpers (Async commands) - Retry helper - String helper - Stream helper
Benchmarking library for Roslyn components.
An implementation of Extractor, Transformer and Loader for use in ETL examples and benchmarks. Built on Wolfgang.Etl.Abstractions.
Target .NetFramework 4.5.1, .NetStandard 1.5, .NetStandard 1.6 y NetStandard 2.0 (.Net Core 2.0) https://docs.microsoft.com/en-us/dotnet/standard/net-standard#net-implementation-support Implementaciones de acceso a datos mediante Entity Framework: -ContextAdapter -BaseUnitOfWork -Repository -Excepciones -Helpers IoC Container Benchmark Success
BenchmarkDotNet Templates
The Quality Layer for RAG Data Pipelines - LLM-powered enrichment and quality assessment
Common .NET Standard code for use in unit tests and benchmarking.
IMEX.CORE: .NET 9/10 core library with unified Fluent API. Cache: L1/L2 Hybrid (199ns L1 hit, 40M ops/sec), CacheConfigurationBuilder (strategy, preset, ConfigureL1/ConfigureHybrid/ConfigureMonitoring, WithRateLimiting). SqlSugar: SqlSugarOptionsBuilder (NOLOCK, slow query, callbacks). AddImexCore: UseCache, UseSqlSugar(configure), UseRateLimiting(configure), UseMonitoring(configure), UseImexCore(app, configure). ISmartCache registered by default. Production-ready.
Runtime platform for executing a wide-range of benchmark and customer-representative workloads on a system.
Runtime platform for executing a wide-range of benchmark and customer-representative workloads on a system.
Runtime platform for executing a wide-range of benchmark and customer-representative workloads on a system.
Runtime platform for executing a wide-range of benchmark and customer-representative workloads on a system.
SimpleSpeedTester is a simple, easy to use framework that helps you speed test your .Net code by taking care some of the orchestration for you. It should NOT be confused with a performance profiler such as JetBrains' dotTrace or RedGate's ANTS profiler. The SimpleSpeedTester is intended for one thing and one thing only – help you speed test a specific piece of code/method over multiple runs, collate the results and work out the average for you so you only have to focus on producing the code you want to test. Where it might be useful is when you want to compare the performance of two similar components/methods in terms of speed, for instance, the serialization and deserialization speed of DataContractJsonSerializer vs JavaScriptSerializer.
The Best “Enterprise Integration Platform” without restrictions. Perigee works with leading enterprise architectures and distributed message systems to allow for transactionally managed integrations. Whether you’re a small shop with data critical needs or a fortune 500 with an expansive network of microservices, we’re here to help.
Common classes from dotNetTips.com that can be used with BenchmarkDotNet.
A simple to use framework for setting up benchmarks and visualizing results in real time.
Unchase Fluent Performance Meter is an open-source and cross-platform .Net Standart 2.0 library is designed for the method’s performance measurement.
Benchmarking library for Roslyn components.
HttpLoadTesting http load generator framework
Easy to use benchmarking, so that you can see how well code runs. Check github for examples
This package includes the nanoFramework.Benchmark assembly for .NET nanoFramework C# projects.
.NET Templates built by Benjamin Michaelis
Config log4net with one line of code, and other useful helper to log codes benchmark (elapsed time of operations)
# EmitMapper ## Project Description [ ](https://github.com/niubilitynetcore/EmitMapper/actions/workflows/dotnet.yml) [ ](https://www.nuget.org/packages/Niubility.EmitMapper/) ## What is EmitMapper EmitMapper is a small library for parsing object-object clones, typically used to convert data objects into domain objects and vice versa. Powerful customizable tool for mapping entities to each other. Entities can be plain objects, DataReaders, SQL commands and anything you need. The tool uses run-time code generation via the Emit library. It is useful for dealing with DTO objects, data access layers an so on. ## How do I get started? ```c# var simple = Mapper.Default.GetMapper<BenchNestedSource, BenchNestedDestination>(); BenchNestedDestination dest = simple.Map(_benchSource); //for single object; List<BenchNestedDestination> dests = simple.MapEnum(_benchSources1000List);// for list object ``` ## Supported platforms: * NETStandard 2.1 * .Net Framework 4.8 * net 6.0 * netcore app 3.1 ### Where can I get it? First, [install NuGet](http://docs.nuget.org/docs/start-here/installing-nuget). Then, install [EmitMapper](https://www.nuget.org/packages/Niubility.EmitMapper/) from the package manager console: ```dos Install-Package Niubility.EmitMapper ``` ## About Emit Mapper * Overview * Benefits of EmitMapper * Getting started * Type conversion * Customization # Customization overview Customization using default configurator * Default configurator overview * Custom converters * Custom converters_for_generics * Null substitution * Ignoring members * Custom constructors * Shallow and_deep_mapping * Names matching * Post processing Low-level customization using custom configuratorors # Emit Mapper in practice. * Benchmark: EmitMapper vs Handwritten code vs AutoMapper * Objects change tracking * Mapping DbDatareader to objects * Mapping objects to DbCommand (UPDATE and INSERT) Last edited Jan 11, 2010 at 3:01 PM by romankovs ## Benchmark ``` ini BenchmarkDotNet=v0.13.1, OS=Windows 10.0.18363.2037 (1909/November2019Update/19H2) Intel Core i5-8350U CPU 1.70GHz (Kaby Lake R), 1 CPU, 8 logical and 4 physical cores .NET SDK=6.0.101 [Host] : .NET 6.0.1 (6.0.121.56705), X64 RyuJIT .NET 6.0 : .NET 6.0.1 (6.0.121.56705), X64 RyuJIT Job=.NET 6.0 Runtime=.NET 6.0 ``` | Method | Mean | Error | StdDev | Median | Ratio | Gen 0 | Gen 1 | Allocated | |----------------------------- |---------------:|------------:|------------:|---------------:|------:|-------:|-------:|----------:| | BenchNested_a_HardMapper | 0.8563 ns | 0.0173 ns | 0.0341 ns | 0.8489 ns | 1.00 | 0.0010 | - | 3 B | | BenchNested_b_EmitMapper | 0.8897 ns | 0.0431 ns | 0.1264 ns | 0.8451 ns | 1.00 | 0.0010 | - | 3 B | | BenchNested_c_AutoMapper | 16.5678 ns | 0.7823 ns | 2.2945 ns | 16.7384 ns | 1.00 | 0.0009 | - | 3 B | | BenchNested1000_a_HardMapper | 3,988.9549 ns | 79.6474 ns | 97.8142 ns | 3,965.5109 ns | 1.00 | 0.4766 | 0.2344 | 3,024 B | | BenchNested1000_b_EmitMapper | 3,781.9851 ns | 74.5756 ns | 122.5298 ns | 3,776.3773 ns | 1.00 | 0.4766 | 0.2344 | 3,024 B | | BenchNested1000_c_AutoMapper | 16,978.1985 ns | 333.1485 ns | 396.5896 ns | 16,966.0594 ns | 1.00 | 0.4688 | 0.2188 | 3,033 B | | SimpleTypes_a_HardMapper | 0.0310 ns | 0.0008 ns | 0.0023 ns | 0.0307 ns | 1.00 | 0.0000 | - | - | | SimpleTypes_b_EmitMapper | 0.0512 ns | 0.0009 ns | 0.0010 ns | 0.0513 ns | 1.00 | 0.0000 | - | - | | SimpleTypes_c_AutoMapper | 0.1718 ns | 0.0035 ns | 0.0076 ns | 0.1709 ns | 1.00 | 0.0000 | - | - | | SimpleTypes100_a_HardMapper | 4.0774 ns | 0.0804 n