lkml.org 
[lkml]   [2013]   [May]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe : Re: [PATCH RESEND v3] bitmap: speed up bitmap_find_free_region
From
Date

>> Test case 1: order is 0. all bits are one except that last one bit is zero.
>> before patch: 29727 ns
>> after patch: 2349 ns
>How did you find out this time?Can you please post your code
>for that?
I used local_clock(), But, It may be more proper way for each system.

before = local_clock();
bitmap_find_free_region(bitmap, 1024,0);
after = local_clock();

Chanho Min,



\
 
 \ /
  Last update: 2013-05-08 03:41    [W:0.210 / U:0.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site