Commit Graph

3 Commits

Author SHA1 Message Date
Ömer Ağacan bf97e28b6d [dart2wasm] Fix reporting measurements in WasmJSInterop benchmarks
benchmark_harness's `measureFor` returns in microseconds, but we
currently show the numbers with the unit "ns".

Convert the microseconds reported by benchmark_harness to nanoseconds
when reporting.

We could also report in microseconds, but the numbers would be very
small, with a few zeros before fractional digits. So keep reporting in
nanoseconds.

Change-Id: I189190b2139c8e2d39b8bef84159585ab0967980
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/436904
Commit-Queue: Ömer Ağacan <omersa@google.com>
Reviewed-by: Martin Kustermann <kustermann@google.com>
2025-06-25 06:49:29 -07:00
Nicholas Shahan 1b5df759b8 [benchmark] Cleanup lint violations
Fix violations of lints that I expect have no influence on the
performance characteristics of this benchmark:

* avoid_init_to_null
* directives_ordering
* prefer_single_quotes

Change-Id: I50b507405abf9eb75c2fba688a9588a2fa84bab7
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/433268
Reviewed-by: Ömer Ağacan <omersa@google.com>
Commit-Queue: Nicholas Shahan <nshahan@google.com>
2025-06-09 15:40:57 -07:00
Martin Kustermann 6e71aa8769 [dart2wasm] Move benchmarks/WasmJSInterop/{,dart/}WasmJSInterop.dart
This will put it into a place where the benchmarking system will find it.

Change-Id: I0ae3762ada89b4b4b71932eb565853a291935fcc
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/429300
Reviewed-by: Ömer Ağacan <omersa@google.com>
2025-05-19 03:50:29 -07:00