-
Notifications
You must be signed in to change notification settings - Fork 285
Add benchmarks for Zip entry extraction and creation #1781
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| ZipFile.CreateFromDirectory(currentTestFolderLocation, _archiveLocation, CompressionLevel, includeBaseDirectory: false); | ||
| _archive = ZipFile.OpenRead(_archiveLocation); | ||
| _entry = _archive.Entries[0]; | ||
| _tempDestinationFileName = FileUtils.GetTestFilePath(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please let me know if this is the right way of getting a temporarily file name for concurrent writes/deletes. In long runs I was always getting the error "access to the path is denied"; by long runs I mean this command:
dotnet run -c Release -f net6.0
--filter *ExtractEntryToFile* --statisticalTest 3ms
--coreRun
"C:\repos\runtime2\artifacts\bin\testhost\net6.0-windows-Release-x64\shared\Microsoft.NETCore.App\6.0.0\CoreRun.exe"
"C:\repos\runtime\artifacts\bin\testhost\net6.0-windows-Release-x64\shared\Microsoft.NETCore.App\6.0.0\CoreRun.exe"
--maxIterationCount 101 --minIterationCount 100
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@adamsitnik there was another argument you used, but I can't find it. Do you remember what was it? Should David use it here too?
Edit: Found it. It was this argument: no outliers removal (--outliers DontRemove).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ping @adamsitnik this was so long ago that I don't remember the context of the argument I mentioned 😄
|
@jozkee @carlossanlop what is the status of this PR? |
|
@carlossanlop @jozkee is this dead or alive 😸 |
carlossanlop
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The code looks good to me, modulo the question about how to properly open the file to ensure we don't see the error. Help us @adamsitnik, you're our only hope.
cc @adamsitnik @carlossanlop