зеркало из https://github.com/dotnet/performance.git
Fix microbenchmarks input files (#1142)
This commit is contained in:
Родитель
ca80d8e288
Коммит
9a2e045226
|
@ -2,12 +2,11 @@
|
||||||
*.md text working-tree-encoding=utf-8 git-encoding=utf-8 eol=lf
|
*.md text working-tree-encoding=utf-8 git-encoding=utf-8 eol=lf
|
||||||
*.sh text eol=lf
|
*.sh text eol=lf
|
||||||
|
|
||||||
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/knucleotide-input-big.txt text eol=lf
|
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/knucleotide-input-big.txt text eol=lf
|
||||||
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/knucleotide-input.txt text eol=lf
|
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/knucleotide-input.txt text eol=lf
|
||||||
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/regexdna-input25.txt text eol=lf
|
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/regexdna-input25.txt text eol=lf
|
||||||
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/regexdna-input25000.txt text eol=lf
|
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/regexdna-input25000.txt text eol=lf
|
||||||
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/revcomp-input25.txt text eol=lf
|
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/revcomp-input25.txt text eol=lf
|
||||||
src/benchmarks/micro/coreclr/BenchmarksGame/Inputs/revcomp-input25000.txt text eol=lf
|
src/benchmarks/micro/runtime/BenchmarksGame/Inputs/revcomp-input25000.txt text eol=lf
|
||||||
src/benchmarks/micro/corefx/System.IO.Compression/TestData/sum text eol=lf
|
src/benchmarks/micro/libraries/System.IO.Compression/TestData/sum text eol=lf
|
||||||
src/benchmarks/micro/corefx/System.IO.Compression/TestData/alice29.txt text eol=lf
|
src/benchmarks/micro/libraries/System.IO.Compression/TestData/alice29.txt text eol=lf
|
||||||
src/benchmarks/micro/corefx/System.Text.RegularExpressions/content/200_000.in text eol=lf
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ namespace System.IO.Compression
|
||||||
internal static string GetFilePath(string fileName)
|
internal static string GetFilePath(string fileName)
|
||||||
=> Path.Combine(
|
=> Path.Combine(
|
||||||
Path.GetDirectoryName(typeof(CompressedFile).Assembly.Location),
|
Path.GetDirectoryName(typeof(CompressedFile).Assembly.Location),
|
||||||
"corefx", "System.IO.Compression", "TestData",
|
"libraries", "System.IO.Compression", "TestData",
|
||||||
fileName);
|
fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -19,7 +19,7 @@ namespace System.Net.Test.Common
|
||||||
|
|
||||||
private static X509Certificate2 GetCertificate(string certificateFileName)
|
private static X509Certificate2 GetCertificate(string certificateFileName)
|
||||||
=> new X509Certificate2(
|
=> new X509Certificate2(
|
||||||
File.ReadAllBytes(Path.Combine("corefx", "System.Net.Http", certificateFileName)),
|
File.ReadAllBytes(Path.Combine("libraries", "System.Net.Http", certificateFileName)),
|
||||||
CertificatePassword,
|
CertificatePassword,
|
||||||
X509KeyStorageFlags.DefaultKeySet);
|
X509KeyStorageFlags.DefaultKeySet);
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,6 +20,6 @@ namespace BenchmarksGame
|
||||||
internal static int GetFileLength(string filePath) => (int) new FileInfo(filePath).Length;
|
internal static int GetFileLength(string filePath) => (int) new FileInfo(filePath).Length;
|
||||||
|
|
||||||
private static string GetFullPath(string fileName)
|
private static string GetFullPath(string fileName)
|
||||||
=> Path.Combine(Path.GetDirectoryName(typeof(InputFileHelper).Assembly.Location), "coreclr", "BenchmarksGame", "Inputs", fileName);
|
=> Path.Combine(Path.GetDirectoryName(typeof(InputFileHelper).Assembly.Location), "runtime", "BenchmarksGame", "Inputs", fileName);
|
||||||
}
|
}
|
||||||
}
|
}
|
Загрузка…
Ссылка в новой задаче