Skip to content

Instantly share code, notes, and snippets.

@zabulus
zabulus / Program.cs
Created March 30, 2017 07:24
Unrolling results
using System;
using System.Linq;
using System.Linq.Expressions;
using BenchmarkDotNet.Running;
using BenchmarkDotNet.Attributes;
using BenchmarkDotNet.Engines;
namespace UnrollBenchmark
{
public class Bench
Available Benchmarks:
#0 Algo_BitCount
#1 Algo_Md5VsSha256
#2 Algo_MostSignificantBit
#3 Cpu_Atomics
#4 Cpu_BranchPerdictor
#5 Cpu_Ilp_Inc
#6 Cpu_Ilp_Max
#7 Cpu_Ilp_VsBce
#8 Cpu_MatrixMultiplication
Microsoft (R) COFF/PE Dumper Version 14.00.23918.0
Copyright (C) Microsoft Corporation. All rights reserved.
Dump of file cryptest.exe
File Type: EXECUTABLE IMAGE
Section contains the following imports:
public static DbTransaction CreateWriteTransaction(this System.Data.Entity.Database self)
{
DbTransaction ret;
self.Connection.Open();
if (self.Connection is FbConnection)
{
FbTransactionOptions options = new FbTransactionOptions() { TransactionBehavior = FbTransactionBehavior.Write | FbTransactionBehavior.ReadCommitted | FbTransactionBehavior.NoRecVersion | FbTransactionBehavior.Wait };
ret = ((FbConnection)self.Connection).BeginTransaction(options);
}
else