/// <summary> /// Creates the name of the framework this bencher is for. Use it in the implementation of CreateFrameworkName /// </summary> /// <param name="formatString">The format string to use. Expects {0} to be for assembly version, {1} for file version.</param> /// <param name="t">The type in the assembly to use for file/assembly version.</param> /// <returns>ready to use framework name</returns> protected string CreateFrameworkName(string formatString, Type t) { string assemblyVersion; string fileVersion; GetVersionStrings(BencherUtils.GetAssembly(t), out fileVersion, out assemblyVersion); return(string.Format(formatString, assemblyVersion, fileVersion)); }
public static void Main(string[] args) { try { BenchController.Run(args); } catch (Exception ex) { BencherUtils.DisplayException(ex); } }
/// <summary> /// Creates the name of the framework this bencher is for. Use the overload which accepts a format string and a type to create a name based on a /// specific version /// </summary> /// <returns>the framework name.</returns> protected override string CreateFrameworkNameImpl() { return("Tortuga Chain v" + BencherUtils.GetVersion(typeof(SqlServerDataSource))); }
/// <summary> /// Creates the name of the framework this bencher is for. Use the overload which accepts a format string and a type to create a name based on a /// specific version /// </summary> /// <returns>the framework name.</returns> protected override string CreateFrameworkNameImpl() { return("RepoDb (Poco) v" + BencherUtils.GetVersion(typeof(TypeMapper))); }
/// <summary> /// Creates the name of the framework this bencher is for. Use the overload which accepts a format string and a type to create a name based on a /// specific version /// </summary> /// <returns>the framework name.</returns> protected override string CreateFrameworkNameImpl() { return("Dapper v" + BencherUtils.GetVersion(typeof(SqlMapper))); }