mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
31 lines
833 B
C#
31 lines
833 B
C#
using System;
|
|
using System.Diagnostics;
|
|
using System.Linq;
|
|
using Compression.BSA;
|
|
using Wabbajack.Common;
|
|
|
|
namespace BSA_speedtest
|
|
{
|
|
class Program
|
|
{
|
|
static void Main(string[] args)
|
|
{
|
|
Stopwatch sw = new Stopwatch();
|
|
sw.Start();
|
|
for (int i = 0; i < 10000; i++)
|
|
{
|
|
var bsa = BSAReader.Load(new AbsolutePath(@"G:\Skyrim - Textures3.bsa"));
|
|
var files = bsa.Files.ToArray();
|
|
var names = files.Select(f => f.Path.ToString()).ToArray();
|
|
if (i % 100 == 0)
|
|
{
|
|
System.Console.WriteLine(i);
|
|
}
|
|
}
|
|
sw.Stop();
|
|
System.Console.WriteLine($"{sw.ElapsedMilliseconds}ms");
|
|
System.Console.ReadLine();
|
|
}
|
|
}
|
|
}
|