<commit_before>﻿using BenchmarkDotNet.Attributes;
using SimpleInjector;
using SolrExpress.Search;

namespace SolrExpress.Benchmarks.Core
{
    public class DocumentCollectionBenchmarks
    {
        private DocumentSearch<TestDocument> _documentSearch;

        //[Params(10, 100, 500, 1000)]
        [Params(10)]
        public int ElementsCount { get; set; }

#if CORE
        [GlobalSetup]
#else
        [Setup]
#endif
        public void Setup()
        {
            var container = new Container();

            container.AddSolrExpressFake<TestDocument>(q => q.UseSolrFake());

            this._documentSearch = container
                .GetInstance<DocumentCollection<TestDocument>>()
                .Select();
<commit_msg>#187 Add benchmarks foundations<commit_after>﻿using BenchmarkDotNet.Attributes;
using SimpleInjector;
using SolrExpress.Search;

namespace SolrExpress.Benchmarks.Core
{
    public class DocumentCollectionBenchmarks
    {
        private DocumentSearch<TestDocument> _documentSearch;

        [Params(10, 100, 500, 1000)]
        public int ElementsCount { get; set; }

#if CORE
        [GlobalSetup]
#else
        [Setup]
#endif
        public void Setup()
        {
            var container = new Container();

            container.AddSolrExpressFake<TestDocument>(q => q.UseSolrFake());

            this._documentSearch = container
                .GetInstance<DocumentCollection<TestDocument>>()
                .Select();

{'fraction_non_alphanumeric': 0.0936431989063568, 'fraction_numerical': 0.019822282980177717, 'mean_word_length': 2.597051597051597, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 13, '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': '5034786', 'n_tokens_mistral': 426, 'n_tokens_neox': 382, 'n_words': 88}