code: def test_cwise_performance(self):
      repeats = 10
      n = 1024
      x = tf.random.uniform([n, n])
      y = tf.random.uniform([n, n])
  
      @tf.function
      def test_add(input_x, input_y):
          z = input_x + input_y
          return z
  
      @tf.function
      def test_sub(input_x, input_y):
          z = input_x - input_y
          return z
  
      @tf.function
      def test_mul(input_x, input_y):
          z = input_x * input_y
          return z
  
      @tf.function
      def test_add_constant(input_x):
          z = input_x + 1
          return z
  
      @tf.function
      def test_mul_constant(input_x):
          z = input_x * 2
          return z
  
      Performance.time_log("Add 1st run")
      test_add(x, y)
      Performance.time_log("Add 1st run")
  
      Performance.time_log("Add run " + str(repeats) + " rounds")
      for i in range(repeats):
          test_add(x, y)
      Performance.time_log("Add run " + str(repeats) + " rounds")
  
      Performance.time_log("Sub 1st run")
      test_sub(x, y)
      Performance.time_log("Sub 1st run")
  
      Performance.time_log("Sub run " + str(repeats) + " rounds")
      for i in range(repeats):
          test_sub(x, y)
      Performance.time_log("Sub run " + str(repeats) + " rounds")
  
      Performance.time_log("Mul 1st run")
      test_mul(x, y)
      Performance.time_log("Mul 1st run")
  
      Performance.time_log("Mul run " + str(repeats) + " rounds")
      for i in range(repeats):
          test_mul(x, y)
      Performance.time_log("Mul run " + str(repeats) + " rounds")
  
      Performance.time_log("Add const 1st run")
      test_add_constant(x)
      Performance.time_log("Add const 1st run")
  
      Performance.time_log("Add const run " + str(repeats) + " rounds")
      for i in range(repeats):
          test_add_constant(x)
      Performance.time_log("Add const run " + str(repeats) + " rounds")
  
      Performance.time_log("Mul const 1st run")
      test_mul_constant(x)
      Performance.time_log("Mul const 1st run")
  
      Performance.time_log("Mul const run " + str(repeats) + " rounds")
      for i in range(repeats):
          test_mul_constant(x)
      Performance.time_log("Mul const run " + str(repeats) + " rounds")
  
file_path: tf-encrypted/examples/benchmark/operation/plain_profile.py
imports: import sys
  import unittest
  import tensorflow
  from tf_encrypted.performance import Performance
label_desc: Use image node_id 7 for calling the TestPlainProfile obj's underlying member method code with example usage: obj.test_cwise_performance() and returns: z, z, z, z, z