# Any benchmark to compare tensorflow code with XLA and without XLA to compare the performance difference between them?

**URL:** <https://discuss.ai.google.dev/t/any-benchmark-to-compare-tensorflow-code-with-xla-and-without-xla-to-compare-the-performance-difference-between-them/31507>\
**Category:** General Discussion\
**Tags:** xla\
**Created:** [June 7, 2023, 1:08pm UTC](https://discuss.ai.google.dev/t/any-benchmark-to-compare-tensorflow-code-with-xla-and-without-xla-to-compare-the-performance-difference-between-them/31507 "2023-06-07T13:08:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin\_raju](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/sachin_raju/32/16846_2.png) [@sachin\_raju](https://discuss.ai.google.dev/u/sachin_raju)\
**Post date:** [June 7, 2023, 1:08pm UTC](https://discuss.ai.google.dev/t/any-benchmark-to-compare-tensorflow-code-with-xla-and-without-xla-to-compare-the-performance-difference-between-them/31507/1 "2023-06-07T13:08:51Z")

</div>

Hi guys,

Trying to find a code or benchmark where I can compare the performance between tensorflow code with XLA and without XLA, to understand it way deeper. Provide any benchmark or code with large data set to work on it.

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![Abhas\_Kumar](https://d1dlmcr85iqnpo.cloudfront.net/user_avatar/discuss.ai.google.dev/abhas_kumar/32/13198_2.png) [@Abhas\_Kumar](https://discuss.ai.google.dev/u/Abhas_Kumar)\
**Post date:** [June 7, 2023, 3:23pm UTC](https://discuss.ai.google.dev/t/any-benchmark-to-compare-tensorflow-code-with-xla-and-without-xla-to-compare-the-performance-difference-between-them/31507/3 "2023-06-07T15:23:35Z")

</div>

Hello Sachin,

Please check the graph below:

 ![image](https://d3qe71uytubmmx.cloudfront.net/original/2X/8/855c2cfd8b28fa06ab1846ec2038966bf0f611e2.png)  
src: [OpenXLA Project](https://www.tensorflow.org/xla)

For the notebook: [Use XLA with tf.function &nbsp;|&nbsp; OpenXLA Project](https://www.tensorflow.org/xla/tutorials/jit_compile) which you may run yourself on Colab.

Thank You.
