Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.
C# annotationscbzcomicinfocomicscomics-readercross-platformcsharpepubepub-readerfreelinuxmangamedia-servermetadataopdsopds-feedpdfself-hostedubooquitywindows
using System.Collections.Generic;
using System.IO;
using BenchmarkDotNet.Attributes;
namespace API.Benchmark;
[MemoryDiagnoser]
public static class CleanTitleBenchmarks
{
private static IList<string> _names;
[GlobalSetup]
public static void LoadData() => _names = File.ReadAllLines("Data/Comics.txt");
[Benchmark]
public static void TestCleanTitle()
{
foreach (var name in _names)
{
Services.Tasks.Scanner.Parser.Parser.CleanTitle(name, true);
}
}
}