benchmark: Repetition is too large on MAC OSX and does not seem controllable

Hi I am running some very simple benchmark (similar to the first example given in the README). And I have encountered these errors:

The number of inputs is very large. BM_UFTree will be repeated at least 18446744072586632936 times.
benchmark(15824,0x7fffaed953c0) malloc: *** mach_vm_map(size=18446743903025913856) failed (error code=3)
*** error: can't allocate region
*** set a breakpoint in malloc_error_break to debug
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc
[1]    15824 abort      ./benchmark --benchmark_repetitions=100

As you can see the command line argument does not seems to have any effect here. Am I missing something? Thanks!

I am testing with clang++ on Mac.

About this issue

  • Original URL
  • State: closed
  • Created 7 years ago
  • Comments: 18 (4 by maintainers)

Most upvoted comments

@LebedevRI okay I updated the .h file in test_include and it worked. Thanks!