<commit_before>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/*
 * 100K boards
 * Output on my laptop:
Timing the creation of 100,000 boards.
10,000 boards created in 0.73 seconds for 13707 boards per second.
10,000 boards created in 0.72 seconds for 13832 boards per second.
10,000 boards created in 0.70 seconds for 14265 boards per second.
10,000 boards created in 0.80 seconds for 12423 boards per second.
10,000 boards created in 0.71 seconds for 14034 boards per second.
10,000 boards created in 0.72 seconds for 13810 boards per second.
10,000 boards created in 0.73 seconds for 13753 boards per second.
10,000 boards created in 0.75 seconds for 13396 boards per second.
10,000 boards created in 0.71 seconds for 14073 boards per second.
10,000 boards created in 0.72 seconds for 13892 boards per second.
100,000 boards created in 7.30 seconds for 13692 boards per second.
Press any key to continue . . .
 */

namespace SolutionCreation
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("Timing the creation of 100,000 boards.");
            var rnd = new Random(0);

            TimeSpan elapsed;
            var start = DateTime.Now;
            for (int i=0; i<10; i++)
            {
                var bStart = DateTime.Now;
                for (int j=0; j<10_000; j++)
                {
                    SudokuSharp.Factory.Solution(rnd);
                }
                elapsed = DateTime.Now - bStart;
                Console.WriteLine("10,000 boards created in {0:0.00} seconds for {1:0} boards per second.", elapsed.TotalSeconds, 10_000 / elapsed.TotalSeconds);
            }
            elapsed = DateTime.Now - start;
            Console.WriteLine("100,000 boards created in {0:0.00} seconds for {1:0} boards per second.", elapsed.TotalSeconds, 100_000 / elapsed.TotalSeconds);
        }
    }
}
<commit_msg>Added parameters for test size<commit_after>﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

/*
 * 100K boards
 * Output on my laptop:
Timing the creation of 100,000 boards.
10,000 boards created in 0.73 seconds for 13707 boards per second.
10,000 boards created in 0.72 seconds for 13832 boards per second.
10,000 boards created in 0.70 seconds for 14265 boards per second.
10,000 boards created in 0.80 seconds for 12423 boards per second.
10,000 boards created in 0.71 seconds for 14034 boards per second.
10,000 boards created in 0.72 seconds for 13810 boards per second.
10,000 boards created in 0.73 seconds for 13753 boards per second.
10,000 boards created in 0.75 seconds for 13396 boards per second.
10,000 boards created in 0.71 seconds for 14073 boards per second.
10,000 boards created in 0.72 seconds for 13892 boards per second.
100,000 boards created in 7.30 seconds for 13692 boards per second.
Press any key to continue . . .
 */

namespace SolutionCreation
{
    class Program
    {
        static void Main(string[] args)
        {
            int Batches = 10;
            int BatchSize = 10000;

            Console.WriteLine("Timing the creation of {0} boards.", Batches*BatchSize);
            var rnd = new Random(0);

            TimeSpan elapsed;
            var start = DateTime.Now;
            for (int i=0; i< Batches; i++)
            {
                var bStart = DateTime.Now;
                for (int j=0; j< BatchSize; j++)
                {
                    SudokuSharp.Factory.Solution(rnd);
                }
                elapsed = DateTime.Now - bStart;
                Console.WriteLine("{0} boards created in {1:0.00} seconds for {2:0} boards per second.", BatchSize, elapsed.TotalSeconds, BatchSize / elapsed.TotalSeconds);
            }
            elapsed = DateTime.Now - start;
            Console.WriteLine("{0} boards created in {1:0.00} seconds for {2:0} boards per second.", Batches*BatchSize, elapsed.TotalSeconds, (Batches*BatchSize) / elapsed.TotalSeconds);
        }
    }
}

{'fraction_non_alphanumeric': 0.08337432365961633, 'fraction_numerical': 0.09370388588293163, 'mean_word_length': 2.455395072217502, 'pattern_counts': {'":': 0, '<': 7, '<?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': '4532662', 'n_tokens_mistral': 1389, 'n_tokens_neox': 1108, 'n_words': 453}