예제 #1
0
        /// <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));
        }
예제 #2
0
 public static void Main(string[] args)
 {
     try
     {
         BenchController.Run(args);
     }
     catch (Exception ex)
     {
         BencherUtils.DisplayException(ex);
     }
 }
예제 #3
0
 /// <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)));
 }
예제 #4
0
 /// <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)));
 }
예제 #5
0
 /// <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)));
 }