-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathProgram.cs
More file actions
40 lines (31 loc) · 1.54 KB
/
Program.cs
File metadata and controls
40 lines (31 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
using BenchmarkDotNet.Running;
namespace Benchmark
{
class Program
{
static void Main(string[] args)
{
//List
BenchmarkRunner.Run<List.PrimitiveSimpleJob>();// 4 byte * Size
BenchmarkRunner.Run<List.PrimitiveOptimalJob>();// 4 byte * Size
BenchmarkRunner.Run<List.StructSimpleJob>();// 24 byte * Size
BenchmarkRunner.Run<List.StructOptimalJob>();// 24 byte * Size
BenchmarkRunner.Run<List.ClassSimpleJob>();// 24 byte * Size
BenchmarkRunner.Run<List.ClassOptimalJob>();// 24 byte * Size
//Queue
BenchmarkRunner.Run<Queue.PrimitiveSimpleJob>();// 4 byte * Size
BenchmarkRunner.Run<Queue.PrimitiveOptimalJob>();// 4 byte * Size
BenchmarkRunner.Run<Queue.StructSimpleJob>();// 24 byte * Size
BenchmarkRunner.Run<Queue.StructOptimalJob>();// 24 byte * Size
BenchmarkRunner.Run<Queue.ClassSimpleJob>();// 24 byte * Size
BenchmarkRunner.Run<Queue.ClassOptimalJob>();// 24 byte * Size
//Stack
BenchmarkRunner.Run<Stack.PrimitiveSimpleJob>();// 4 byte * Size
BenchmarkRunner.Run<Stack.PrimitiveOptimalJob>();// 4 byte * Size
BenchmarkRunner.Run<Stack.StructSimpleJob>();// 24 byte * Size
BenchmarkRunner.Run<Stack.StructOptimalJob>();// 24 byte * Size
BenchmarkRunner.Run<Stack.ClassSimpleJob>();// 24 byte * Size
BenchmarkRunner.Run<Stack.ClassOptimalJob>();// 24 byte * Size
}
}
}