<commit_before>﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using DtronixMessageQueue.Rpc;
using DtronixMessageQueue.Tests.Performance.Services.Server;

namespace DtronixMessageQueue.Tests.Performance {
	class RpcPerformanceTest {
		public RpcPerformanceTest(string[] args) {
			var config = new MqSocketConfig() {
				Ip = "127.0.0.1",
				Port = 2828
			};

			RpcSingleProcessTest(1000, 4, config, RpcTestType.Exception);

			RpcSingleProcessTest(1000, 4, config, RpcTestType.Return);

			RpcSingleProcessTest(100000, 4, config, RpcTestType.NoRetrun);

			
		}


		private void RpcSingleProcessTest(int runs, int loops, MqSocketConfig config, RpcTestType type) {
			var server = new RpcServer<SimpleRpcSession>(config);
			TestService test_service;<commit_msg>Updated test order.<commit_after>﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using DtronixMessageQueue.Rpc;
using DtronixMessageQueue.Tests.Performance.Services.Server;

namespace DtronixMessageQueue.Tests.Performance {
	class RpcPerformanceTest {
		public RpcPerformanceTest(string[] args) {
			var config = new MqSocketConfig() {
				Ip = "127.0.0.1",
				Port = 2828
			};

			RpcSingleProcessTest(100000, 4, config, RpcTestType.NoRetrun);

			RpcSingleProcessTest(1000, 4, config, RpcTestType.Return);

			RpcSingleProcessTest(1000, 4, config, RpcTestType.Exception);


		}


		private void RpcSingleProcessTest(int runs, int loops, MqSocketConfig config, RpcTestType type) {
			var server = new RpcServer<SimpleRpcSession>(config);
			TestService test_service;
{'fraction_non_alphanumeric': 0.09531866892272983, 'fraction_numerical': 0.030456852791878174, 'mean_word_length': 5.358422939068101, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, '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': '4890342', 'n_tokens_mistral': 656, 'n_tokens_neox': 551, 'n_words': 123}