You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

Program.cs 536 B

123456789101112131415161718192021
  1. using BenchmarkDotNet.Running;
  2. using System.Diagnostics;
  3. namespace LLama.Benchmark
  4. {
  5. public class Program
  6. {
  7. public static void Main(string[] args)
  8. {
  9. if (args.Length == 1)
  10. {
  11. var modelDir = args[0];
  12. Constants.ModelDir = modelDir;
  13. Console.WriteLine($"#################### model dir: {modelDir}");
  14. }
  15. var summary = BenchmarkRunner.Run(typeof(Program).Assembly);
  16. Console.WriteLine(summary);
  17. }
  18. }
  19. }