tree: 65322b812dec60ed3996fd7969eb4cf6e3c4af1e [path history] [tgz]
  1. BUILD.gn
  2. OWNERS
  3. README.md
  4. assert.h
  5. async_loop.cc
  6. async_loop.fidl
  7. atomics.cc
  8. channels.cc
  9. clock.cc
  10. context_switch_overhead.cc
  11. context_switch_overhead_helper.cc
  12. events.cc
  13. example.cc
  14. fdio_spawn.cc
  15. fdio_spawn_helper.cc
  16. fifos.cc
  17. filesystem.cc
  18. get_info.cc
  19. get_info_helper.cc
  20. handle.cc
  21. handle_creation.cc
  22. inspect.cc
  23. lazy_dir.cc
  24. malloc.cc
  25. mem_alloc.cc
  26. memcpy.cc
  27. meta/
  28. mmu.cc
  29. mutex.cc
  30. null.cc
  31. object_wait.cc
  32. ports.cc
  33. prng.cc
  34. pseudo_dir.cc
  35. pthreads.cc
  36. random_memcpy.cc
  37. round_trip_service.fidl
  38. round_trips.cc
  39. round_trips.h
  40. sleep.cc
  41. sockets.cc
  42. streams.cc
  43. syscalls.cc
  44. test_runner.cc
  45. test_runner.h
  46. threads.cc
  47. timer.cc
  48. util.cc
  49. util.h
  50. vmo.cc
src/tests/microbenchmarks/README.md

Fuchsia Microbenchmarks

This set of tests includes microbenchmarks for Zircon syscalls and IPC primitives, as well as microbenchmarks for other layers of Fuchsia.

This used to be called “zircon_benchmarks”, but it was renamed to reflect that it covers more than just Zircon.

Writing Benchmarks

This uses Zircon's perftest library.

Running Benchmarks

There are two ways to run fuchsia_microbenchmarks:

  • perftest mode: This mode will record the times taken by each run of the benchmarks, allowing further analysis, which is useful for detecting performance regressions. It also prints some summary statistics. This uses the test runner provided by Zircon's perftest library.

    For this, run fuchsia_microbenchmarks -p --out=output.json. The result data will be written to output.json using our perf test result schema.

    See Zircon's perftest library for details of the other command line options.

  • Test-only mode: This runs on the bots via runtests, and it just checks that each benchmark still works. It runs quickly -- it runs only a small number of iterations of each benchmark. It does not print any performance information.

    For this, run run-test-component fuchsia-pkg://fuchsia.com/fuchsia_microbenchmarks#meta/fuchsia_microbenchmarks.cmx.