yum-archive/TaSTT-Whisper

High-performance GPGPU inference of OpenAI's Whisper automatic speech recognition (ASR) model

git clone https://git.yummers.dev/yum-archive/TaSTT-Whisper

KonstantinA tool to summarize performance data into one table5483755

master
674 B29 linesraw
1using System.Runtime.CompilerServices;
2
3namespace PerfSummary
4{
5	internal class Program
6	{
7		static string getSolutionRoot( [CallerFilePath] string? path = null )
8		{
9			string? dir = Path.GetDirectoryName( path );
10			dir = Path.GetDirectoryName( dir );
11			dir = Path.GetDirectoryName( dir );
12			return dir ?? throw new ApplicationException();
13		}
14
15		static void Main( string[] args )
16		{
17			string root = getSolutionRoot();
18			root = Path.Combine( root, "SampleClips" );
19
20			LogData[] logs = LogParser.parse( root )
21				.OrderBy( x => x.name.clip )
22				.ThenBy( x => x.name.model )
23				.ThenBy( x => x.name.gpu )
24				.ToArray();
25
26			Summary.print( logs, root );
27		}
28	}
29}