<commit_before>﻿using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;

namespace DtronixMessageQueue.Tests.Performance
{
    class Program
    {

        [DllImport("kernel32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        static extern bool GetPhysicallyInstalledSystemMemory(out long total_memory_in_kilobytes);

        static void Main(string[] args)
        {
            var mode = args.Length == 0 ? null : args[0];
            var file_name = string.Join("-", args);
            using (var cc = new ConsoleCopy($"MessageQueuePerformanceTest-{file_name}.txt"))
            {
                PerformanceTestBase.WriteSysInfo();

                Console.WriteLine($"DMQPerf.exe {string.Join(" ", args)}");

                Console.WriteLine("MQ Performance tests.\r\n");
                 new MqPerformanceTest().StartTest();

                Console.ReadLine();

                Console.WriteLine("RPC Performance tests.\r\n");
                new RpcPerformanceTest(args);<commit_msg>Removed ReadLine from performance test.<commit_after>﻿using System;
using System.Collections.Concurrent;
using System.Diagnostics;
using System.Linq;
using System.Management;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;

namespace DtronixMessageQueue.Tests.Performance
{
    class Program
    {

        [DllImport("kernel32.dll")]
        [return: MarshalAs(UnmanagedType.Bool)]
        static extern bool GetPhysicallyInstalledSystemMemory(out long total_memory_in_kilobytes);

        static void Main(string[] args)
        {
            var mode = args.Length == 0 ? null : args[0];
            var file_name = string.Join("-", args);
            using (var cc = new ConsoleCopy($"MessageQueuePerformanceTest-{file_name}.txt"))
            {
                PerformanceTestBase.WriteSysInfo();

                Console.WriteLine($"DMQPerf.exe {string.Join(" ", args)}");

                Console.WriteLine("MQ Performance tests.\r\n");
                new MqPerformanceTest().StartTest();

                Console.WriteLine("RPC Performance tests.\r\n");
                new RpcPerformanceTest(args);
{'fraction_non_alphanumeric': 0.10971379011274934, 'fraction_numerical': 0.003469210754553339, 'mean_word_length': 2.6735668789808917, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1883965', 'n_tokens_mistral': 627, 'n_tokens_neox': 589, 'n_words': 128}