Function Performance Test record

Source: Internet
Author: User
Tags dell precision 7510

1. New and heapalloc:1. Test environment:

1. Operating system: Windows 7 64-bit flagship edition

2. Computer Type: Laptop (Dell Precision 7510)

3. Processor: I7-6820HQ @ 2.70GHz Four core

4. Memory: 32GB

5. Graphics: NVIDIA Quadro m1000m

6. Compiling the Environment: Microsoft Visual Studio 2015

7. Project configuration: Debug x64

8. Auxiliary tools: None

2. Assign only to individual variables not released:

1. Code:

#defineLoop 100000000int*p; DWORD T1=GetTickCount ();  for(inti =0; i < Loop; ++i) {p=New int; } DWORD T2=GetTickCount (); DWORD t_new= T2-T1; T1=GetTickCount ();  for(inti =0; i < Loop; ++i) {p= (int*) HeapAlloc (GetProcessHeap (), Heap_zero_memory,sizeof(int)); } T2=GetTickCount (); DWORD T_heap= T2-T1; printf ("New Time:%d \nheapalloc time:%d", T_new, t_heap);

2. Results:

< to Be continued >

Function Performance Test record

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.