commit | cff397e27893079d27fc17009aefaf0aa6f78a37 | [log] [tgz] |
---|---|---|
author | Stiopa Koltsov <stepan.koltsov@gmail.com> | Wed Nov 18 14:54:20 2020 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Wed Nov 18 14:55:31 2020 -0800 |
tree | 1c946b2b47bb0aa95da40a0ec23bd7e1b2d75e8e | |
parent | 99725e144a9d2c4251d7f8e1a41851ba365c683f [diff] |
Starlark: fix overflow in benchmark When benchmark is written incorrectly (without a loop), benchmark utility may work long and output something like this: ``` benchmark ops cpu/op wall/op steps/op alloc/op bench_int_add_64 -1 -1000000025ns -9169808000ns -7452041 -1728885360B ``` Fix it. ``` benchmark ops cpu/op wall/op steps/op alloc/op In bench_test: bench is too fast, likely a loop over `range(b.n)` is missing ``` Closes #12503. PiperOrigin-RevId: 343162179
{Fast, Correct} - Choose two
Build and test software of any size, quickly and reliably.
Speed up your builds and tests: Bazel rebuilds only what is necessary. With advanced local and distributed caching, optimized dependency analysis and parallel execution, you get fast and incremental builds.
One tool, multiple languages: Build and test Java, C++, Android, iOS, Go, and a wide variety of other language platforms. Bazel runs on Windows, macOS, and Linux.
Scalable: Bazel helps you scale your organization, codebase, and continuous integration solution. It handles codebases of any size, in multiple repositories or a huge monorepo.
Extensible to your needs: Easily add support for new languages and platforms with Bazel's familiar extension language. Share and re-use language rules written by the growing Bazel community.
Follow our tutorials:
See CONTRIBUTING.md