code: def test_both_items_and_bytes_per_second():
      name = "ArrayArrayKernel<AddChecked, UInt8Type>/32768/0"
      google_result = {
          "bytes_per_second": 281772039.9844759,
          "cpu_time": 116292.58886653671,
          "items_per_second": 281772039.9844759,
          "iterations": 5964,
          "name": name,
          "null_percent": 0.0,
          "real_time": 119811.77313729875,
          "repetition_index": 0,
          "repetitions": 0,
          "run_name": name,
          "run_type": "iteration",
          "size": 32768.0,
          "threads": 1,
          "time_unit": "ns",
      }
      # Note that bytes_per_second trumps items_per_second
      archery_result = {
          "counters": {
              "iterations": 5964,
              "null_percent": 0.0,
              "repetition_index": 0,
              "repetitions": 0,
              "run_name": name,
              "threads": 1,
          },
          "name": name,
          "unit": "bytes_per_second",
          "less_is_better": False,
          "values": [281772039.9844759],
          "time_unit": "ns",
          "times": [119811.77313729875],
      }
      assert "items_per_second" in google_result
      assert "bytes_per_second" in google_result
      assert_benchmark(name, google_result, archery_result)
  
imports: import json
  from archery.benchmark.codec import JsonEncoder
  from archery.benchmark.core import Benchmark, median
  from archery.benchmark.compare import BenchmarkComparator, RunnerComparator
  from archery.benchmark.google import GoogleBenchmark, GoogleBenchmarkObservation
  from archery.benchmark.runner import StaticBenchmarkRunner
label_desc: Use image node_id 10 for calling a global function with example usage: test_both_items_and_bytes_per_second() without return types