Timeline for Base64 implementation in C#
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Nov 22, 2016 at 9:43 | comment | added | phuclv | Not C# but should be similar, because Java also uses JIT. How do I write a correct micro-benchmark in Java?. There are also a lot of results on Google for benchmarking JITted binary mattwarren.org/2014/09/19/the-art-of-benchmarking | |
Nov 22, 2016 at 7:13 | history | edited | Jamal | CC BY-SA 3.0 |
deleted 14 characters in body; edited title
|
Nov 22, 2016 at 7:00 | vote | accept | Luke Park | ||
Nov 22, 2016 at 6:16 | answer | added | Der Kommissar | timeline score: 8 | |
Nov 22, 2016 at 5:58 | comment | added | Der Kommissar | I'll write an answer after I actually review the code. :) You're not getting away that easily. | |
Nov 22, 2016 at 5:58 | comment | added | Luke Park | @EBrown Just read your edit. I tried the looping and discarding and you were right, they perform about the same. If you want to write an answer I can mark it as correct. | |
Nov 22, 2016 at 5:55 | comment | added | Luke Park | @EBrown Hmmmm just tested and the performance gap is about the same, if anything, worse. | |
Nov 22, 2016 at 5:53 | comment | added | Der Kommissar | If you have a 64-bit system, yes. Release -> x64 -> Build -> Open Folder -> Run. Then, for a proper benchmark, you should consider a benchmark tool (Google BenchmarkDotNet), but what you should do is loop, say 10 times on each, discard the first 10 loop results, then loop 10 more times, then take the averages for your comparison. (Right now you're likely also measuring JIT on your code.) | |
Nov 22, 2016 at 5:52 | comment | added | Luke Park | @EBrown Ahh I didn't even think of that! Was testing in Debug on Any CPU. I should try Release on 64 bit yes? | |
Nov 22, 2016 at 5:51 | comment | added | Der Kommissar | Are you timing it in Debug or Release mode, and are you timing it on Any CPU, x86 or x64? | |
Nov 22, 2016 at 5:14 | review | First posts | |||
Nov 22, 2016 at 5:25 | |||||
Nov 22, 2016 at 5:10 | history | asked | Luke Park | CC BY-SA 3.0 |