Comments (1)
BenchmarkDotNet=v0.13.2, OS=Windows 10 (10.0.19044.1889/21H2/November2021Update)
AMD Ryzen Threadripper 3970X, 1 CPU, 64 logical and 32 physical cores
.NET SDK=6.0.400
[Host] : .NET 6.0.8 (6.0.822.36306), X64 RyuJIT AVX2
.NET 6.0 : .NET 6.0.8 (6.0.822.36306), X64 RyuJIT AVX2
Job=.NET 6.0 Runtime=.NET 6.0
Method | Size | Mean | Ratio | Allocated |
---|---|---|---|---|
StackOfInt32 | 100 | 362.6 ns | 0.93 | - |
Stack<int> | 100 | 391.2 ns | 1.00 | - |
StackOfInt32 | 1000 | 2,922.6 ns | 0.99 | - |
Stack<int> | 1000 | 2,940.5 ns | 1.00 | - |
StackOfInt32 | 10000 | 28,535.9 ns | 1.00 | - |
Stack<int> | 10000 | 28,634.1 ns | 1.00 | - |
StackOfInt32 | 100000 | 300,406.5 ns | 1.00 | - |
Stack<int> | 100000 | 300,773.5 ns | 1.00 | - |
StackOfInt32 | 250000 | 724,108.8 ns | 0.96 | - |
Stack<int> | 250000 | 757,929.6 ns | 1.00 | 1 B |
StackOfInt32 | 500000 | 1,741,689.5 ns | 0.99 | 1 B |
Stack<int> | 500000 | 1,750,591.6 ns | 1.00 | 1 B |
StackOfInt32 | 1000000 | 3,473,804.2 ns | 1.01 | 2 B |
Stack<int> | 1000000 | 3,436,813.6 ns | 1.00 | 4 B |
BenchmarkDotNet=v0.13.2, OS=Windows 10 (10.0.19044.1889/21H2/November2021Update)
AMD Ryzen Threadripper 3970X, 1 CPU, 64 logical and 32 physical cores
.NET SDK=6.0.400
[Host] : .NET 6.0.8 (6.0.822.36306), X64 RyuJIT AVX2
.NET 6.0 : .NET 6.0.8 (6.0.822.36306), X64 RyuJIT AVX2
Job=.NET 6.0 Runtime=.NET 6.0
Method | Size | Mean | Ratio | Allocated |
---|---|---|---|---|
StackOfInt32 | 100 | 54.50 μs | 0.90 | - |
Stack<int> | 100 | 60.39 μs | 1.00 | - |
StackOfInt32 | 1000 | 518.54 μs | 0.98 | - |
Stack<int> | 1000 | 528.34 μs | 1.00 | 1 B |
StackOfInt32 | 10000 | 5,164.10 μs | 0.99 | 4 B |
Stack<int> | 10000 | 5,211.05 μs | 1.00 | 7 B |
StackOfInt32 | 100000 | 52,065.40 μs | 1.00 | 48 B |
Stack<int> | 100000 | 52,321.01 μs | 1.00 | 150 B |
StackOfInt32 | 250000 | 130,913.04 μs | 1.00 | 558 B |
Stack<int> | 250000 | 131,042.00 μs | 1.00 | 614 B |
StackOfInt32 | 500000 | 260,797.32 μs | 0.99 | 1116 B |
Stack<int> | 500000 | 262,516.29 μs | 1.00 | 2180 B |
StackOfInt32 | 1000000 | 523,723.08 μs | 1.00 | 11224 B |
Stack<int> | 1000000 | 524,802.33 μs | 1.00 | 3792 B |
from stackmemorycollections.
Related Issues (20)
- Remove duplicate primitive collections HOT 1
- Genarate primitive wrappers
- Break the StackMemory Generator into Parts
- Add support for structures with fields/properties - classes HOT 1
- Add support for classes with fields/properties - classes or structures HOT 1
- Add support for collections on pointers HOT 1
- Add deep copy method generation
- Add support for null properties of type class
- Populate collection-stack documentation
- Populate helper class documentation
- Populate wrapper class documentation
- Add generation mode: treat classes as references
- Add Test generator for memory
- Add Tests for CommonHelper
- Add a warning when generating about the absence of a constructor with no parameters
- Stack: TopFuture() and PushFuture() methods
- Populate queue class documentation
- Populate list class documentation
- Implement `IIncrementalGenerator` instead of `ISourceGenerator`
- Use SourceProductionContext.CancellationToken
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stackmemorycollections.