# Best practices for testing compiler optimizations?

**URL:** https://racket.discourse.group/t/best-practices-for-testing-compiler-optimizations/2369
**Category:** General
**Created:** [October 5, 2023, 10:03pm UTC](https://racket.discourse.group/t/best-practices-for-testing-compiler-optimizations/2369 "2023-10-05T22:03:00Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![countvajhula](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/countvajhula/32/65_2.png) [@countvajhula](https://racket.discourse.group/u/countvajhula)
#### Post date: [October 7, 2023, 4:22am UTC](https://racket.discourse.group/t/best-practices-for-testing-compiler-optimizations/2369/4 "2023-10-07T04:22:31Z")

</div>

That is a very clever approach! I think we will adopt your suggestion of using `test-comp` or something like it. I will need to think more about the details you've shared here, and thank you for pointing out the tests in the Racket source as well.

---

_[View the full topic](https://racket.discourse.group/t/best-practices-for-testing-compiler-optimizations/2369)._
