Skip to content

Commit

Permalink
clean up readme
Browse files Browse the repository at this point in the history
  • Loading branch information
camille-avatarmedical committed Mar 6, 2024
1 parent 6795c50 commit b6f014c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ private static async Task DoHttpRequest(string url)
var response2 = await httpClient2.GetAsync(url);
var byteArray2 = await response2.Content.ReadAsByteArrayAsync();
Console.WriteLine($"download time using HttpClient {stopwatch.ElapsedMilliseconds} ms");
Console.WriteLine($"sha1 using HttpClient {GetHashSHA1(byteArray2)}");
Console.WriteLine($"SHA1 using HttpClient {GetHashSHA1(byteArray2)}");
}

public static string GetHashSHA1(byte[] data)
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ This project is a reproduction project to highlight a performance issue in the H
## Requirements
To have a working environment you need:
* Unity 2022.3.4f1
* A .Net core development environment or Visual Studio 22
* A .Net core development environment or Visual Studio 2022

## Setup
First you need to create a binary file and place it in Server/binary.content. We advise a file between 300 and 400MB. It is better is content is random.
Expand All @@ -30,10 +30,10 @@ You should have something like this:
````
HTTPS
download time using HttpClient 2238 ms
sha1 using HttpClient 990B3A5A6F1C9ACC333E305A0E879125A9B699BD
SHA1 using HttpClient 990B3A5A6F1C9ACC333E305A0E879125A9B699BD
HTTP
download time using HttpClient 1581 ms
sha1 using HttpClient 990B3A5A6F1C9ACC333E305A0E879125A9B699BD
SHA1 using HttpClient 990B3A5A6F1C9ACC333E305A0E879125A9B699BD
````
Then you can open the Unity project in the Unity directory. By opening the scene named MainScene and playing it you should have something like this appear on the logs:
Expand Down

0 comments on commit b6f014c

Please sign in to comment.