tfjs icon indicating copy to clipboard operation
tfjs copied to clipboard

[WebGL] Benchmark code snippet for conv2d

Open Linchenn opened this issue 3 years ago • 0 comments

Will not merge this into code base

Will use this code snippet to compare the conv2d's performance of the experimental dense implementation, https://github.com/tensorflow/tfjs/pull/6566, against the current implementation.

Browserstack benchmark

Will test on the following browserstack targets:

  • IOS (webgl-1): //tfjs-backend-webgl:bs_ios_11_tfjs-backend-webgl1_test
  • Android: //tfjs-backend-webgl:bs_android_9_tfjs-backend-webgl2_test

Example command: yarn bazel test --test_output=streamed --//:grep='Benchmark general conv2d with dense' //tfjs-backend-webgl:bs_android_9_tfjs-backend-webgl2_test --nocache_test_results

Example output: image

Local benchmark

And will test locally on Mac, Mac-M1 and Linux. Example command: yarn test --test_verbose_timeout_warnings --verbose_failures --nocache_test_results --//:grep='benchmark dense'

To see the logs from the Cloud Build CI, please join either our discussion or announcement mailing list.


This change is Reviewable

Linchenn avatar Jun 30 '22 23:06 Linchenn