Exemplo n.º 1
0
        static async Task <int> Main(string[] args)
        {
            if (Environment.OSVersion.Platform != PlatformID.Unix || RuntimeInformation.ProcessArchitecture != Architecture.X64)
            {
                Console.WriteLine($"Platform not supported: {Environment.OSVersion.Platform}/{RuntimeInformation.ProcessArchitecture}");
                return(-1);
            }

            Console.WriteLine("WRK Client");
            Console.WriteLine("args: " + string.Join(' ', args));

            await WrkProcess.MeasureFirstRequest(args);

            await WrkProcess.DownloadWrkAsync();

            return(await WrkProcess.RunAsync(args));
        }
Exemplo n.º 2
0
        static async Task <int> Main(string[] args)
        {
            Console.WriteLine("WRK Client");
            Console.WriteLine("args: " + string.Join(' ', args));

            if (Environment.OSVersion.Platform == PlatformID.Unix)
            {
                Console.WriteLine("Platform not supported");
                return(-1);
            }

            await WrkProcess.MeasureFirstRequest(args);

            await WrkProcess.DownloadWrkAsync();

            await WrkProcess.RunAsync(args);

            return(0);
        }