Skip to content
  • Yury Norov's avatar
    lib/find_bit_benchmark.c: align test_find_next_and_bit with others · 439e00b7
    Yury Norov authored
    Contrary to other tests, test_find_next_and_bit() test uses tab
    formatting in output and get_cycles() instead of ktime_get().
    get_cycles() is not supported by some arches, so ktime_get() fits better
    in generic code.
    
    Fix it and minor style issues, so the output looks like this:
    
    Start testing find_bit() with random-filled bitmap
    find_next_bit:                 7142816 ns, 163282 iterations
    find_next_zero_bit:            8545712 ns, 164399 iterations
    find_last_bit:                 6332032 ns, 163282 iterations
    find_first_bit:               20509424 ns,  16606 iterations
    find_next_and_bit:             4060016 ns,  73424 iterations
    
    Start testing find_bit() with sparse bitmap
    find_next_bit:                   55984 ns,    656 iterations
    find_next_zero_bit:           19197536 ns, 327025 iterations
    find_last_bit:                   65088 ns,    656 iterations
    find_first_bit:                5923712 ns,    656 iterations
    find_next_and_bit:          ...
    439e00b7