Created
February 10, 2016 17:51
-
-
Save TheDataLeek/98b1560203426faa3b38 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ╰─>$ gcc code.c -O0 -o code ; ./code | |
| Total time elapsed for strcpy1 size 10: 0 us | |
| Total time elapsed for strcpy2 size 10: 0 us | |
| Total time elapsed for strcpy3 size 10: 0 us | |
| Total time elapsed for strcpy1 size 100: 1 us | |
| Total time elapsed for strcpy2 size 100: 0 us | |
| Total time elapsed for strcpy3 size 100: 0 us | |
| Total time elapsed for strcpy1 size 1000: 2 us | |
| Total time elapsed for strcpy2 size 1000: 2 us | |
| Total time elapsed for strcpy3 size 1000: 3 us | |
| Total time elapsed for strcpy1 size 10000: 27 us | |
| Total time elapsed for strcpy2 size 10000: 28 us | |
| Total time elapsed for strcpy3 size 10000: 24 us | |
| Total time elapsed for strcpy1 size 100000: 271 us | |
| Total time elapsed for strcpy2 size 100000: 205 us | |
| Total time elapsed for strcpy3 size 100000: 251 us | |
| Total time elapsed for strcpy1 size 1000000: 2812 us | |
| Total time elapsed for strcpy2 size 1000000: 1845 us | |
| Total time elapsed for strcpy3 size 1000000: 2493 us | |
| Total time elapsed for strcpy1 size 10000000: 68817 us | |
| Total time elapsed for strcpy2 size 10000000: 25921 us | |
| Total time elapsed for strcpy3 size 10000000: 27546 us | |
| Total time elapsed for strcpy1 size 100000000: 348440 us | |
| Total time elapsed for strcpy2 size 100000000: 190655 us | |
| Total time elapsed for strcpy3 size 100000000: 283161 us | |
| Total time elapsed for strcpy1 size 1000000000: 3237538 us | |
| Total time elapsed for strcpy2 size 1000000000: 2325820 us | |
| Total time elapsed for strcpy3 size 1000000000: 2822737 us | |
| Total time elapsed for strcpy1 size 1410065408: 5102834 us | |
| Total time elapsed for strcpy2 size 1410065408: 3440148 us | |
| Total time elapsed for strcpy3 size 1410065408: 4033763 us | |
| Total time elapsed for strcpy1 size 1215752192: 4429191 us | |
| Total time elapsed for strcpy2 size 1215752192: 2889617 us | |
| Total time elapsed for strcpy3 size 1215752192: 3611796 us | |
| fish: “./code” terminated by signal SIGSEGV (Address boundary error) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment