Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/amarok24/fillarray__java-vs-csharp
Speed comparison, Java vs. C# (DotNet Core), filling an array with numbers.
https://github.com/amarok24/fillarray__java-vs-csharp
csharp dotnet java speed-comparison
Last synced: 19 days ago
JSON representation
Speed comparison, Java vs. C# (DotNet Core), filling an array with numbers.
- Host: GitHub
- URL: https://github.com/amarok24/fillarray__java-vs-csharp
- Owner: Amarok24
- License: unlicense
- Created: 2020-11-08T10:51:29.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-13T18:45:25.000Z (about 4 years ago)
- Last Synced: 2024-11-06T04:40:25.338Z (2 months ago)
- Topics: csharp, dotnet, java, speed-comparison
- Language: C#
- Homepage:
- Size: 42 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fillArray__Java-vs-CSharp
Speed comparison, Java vs. C# (DotNet Core), filling an array with 1 million integers.*Tests done on: Intel i7 2.9 GHz, Windows 10 64bit*
*Java: OpenJDK 15.0.1*
*C# v9.0 (.NET 5.0.100)*
### 3 test runs with parameters: 1000002, 1000003, 1000004
## fillArray.java
- 0.0051042s
- 0.0049314s
- 0.0058498s
- AVERAGE: 5.3ms## growArrayList.java
- 0.0291516s
- 0.0306681s
- 0.0293959s
- AVERAGE: 29.74ms## growLinkedList.java
- 0.1172112
- 0.1074784
- 0.1174478
- AVERAGE: 114.0ms## fillArray.cs
- 3ms
- 4ms
- 3ms
- AVERAGE: 3.3ms## growList.cs
- 6ms
- 7ms
- 6ms
- AVERAGE: 6.3ms## growLinkedList.cs
- 71ms
- 70ms
- 71ms
- AVERAGE: 70.7msThere are much more collection types in C#, this one just as a bonus:
## growHetArrayList.cs
- 83ms
- 74ms
- 68ms
- AVERAGE: 75ms