<commit_before>﻿//-----------------------------------------------------------------------
// <copyright file="DispatcherThroughputSpecBase.cs" company="Akka.NET Project">
//     Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
//     Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Threading;
using Akka.Actor;
using Akka.Actor.Internal;
using Akka.Dispatch;
using NBench;

namespace Akka.Tests.Performance.Dispatch
{
    /// <summary>
    /// Base class used to test all <see cref="MessageDispatcher"/> implementations
    /// </summary>
    public abstract class ColdDispatcherThroughputSpecBase
    {
        protected ActorSystem Sys;
        protected DefaultDispatcherPrerequisites Prereqs;

        protected abstract MessageDispatcherConfigurator Configurator();

        private const string DispatcherCounterName = "ScheduledActionCompleted";
        private const long ScheduleCount = 10000;

        private Counter _dispatcherCounter;

        private MessageDispatcher _dispatcher;
        private MessageDispatcherConfigurator _configurator;
<commit_msg>significantly increased number of scheduled operations for dispatcher throughput specs (#2715)<commit_after>﻿//-----------------------------------------------------------------------
// <copyright file="DispatcherThroughputSpecBase.cs" company="Akka.NET Project">
//     Copyright (C) 2009-2016 Lightbend Inc. <http://www.lightbend.com>
//     Copyright (C) 2013-2016 Akka.NET project <https://github.com/akkadotnet/akka.net>
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Threading;
using Akka.Actor;
using Akka.Actor.Internal;
using Akka.Dispatch;
using NBench;

namespace Akka.Tests.Performance.Dispatch
{
    /// <summary>
    /// Base class used to test all <see cref="MessageDispatcher"/> implementations
    /// </summary>
    public abstract class ColdDispatcherThroughputSpecBase
    {
        protected ActorSystem Sys;
        protected DefaultDispatcherPrerequisites Prereqs;

        protected abstract MessageDispatcherConfigurator Configurator();

        private const string DispatcherCounterName = "ScheduledActionCompleted";
        private const long ScheduleCount = 1000000;

        private Counter _dispatcherCounter;

        private MessageDispatcher _dispatcher;
        private MessageDispatcherConfigurator _configurator;

{'fraction_non_alphanumeric': 0.19265338022665104, 'fraction_numerical': 0.01875732708089097, 'mean_word_length': 2.3551769331585843, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 17, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, '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': '4155729', 'n_tokens_mistral': 676, 'n_tokens_neox': 584, 'n_words': 162}