tree: abd46a6c432b54752a02c6e463ce6f59d3bb15b4 [path history] [tgz]
  1. meta/
  2. assert.h
  3. async_loop.cc
  4. async_loop.fidl
  5. atomics.cc
  6. BUILD.gn
  7. channels.cc
  8. clock.cc
  9. context_switch_overhead.cc
  10. context_switch_overhead_helper.cc
  11. events.cc
  12. example.cc
  13. fdio_spawn.cc
  14. fdio_spawn_helper.cc
  15. fifos.cc
  16. filesystem.cc
  17. get_info.cc
  18. get_info_helper.cc
  19. handle.cc
  20. handle_creation.cc
  21. inspect.cc
  22. lazy_dir.cc
  23. malloc.cc
  24. mem_alloc.cc
  25. memcpy.cc
  26. mmu.cc
  27. mutex.cc
  28. null.cc
  29. object_wait.cc
  30. OWNERS
  31. ports.cc
  32. prng.cc
  33. pseudo_dir.cc
  34. pthreads.cc
  35. random_memcpy.cc
  36. README.md
  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.