I had some ASTM D6400 takeout containers, so I tried them in my compost bin. They mostly broke down after two years, but I kept tossing them back in when I pulled out dirt. The stonger ribbed parts took forever, the thinner bottom of the container was completely gone. Eventually I buried them in a trench as I was tired of dealing with the experiment.
I find I need to keep my compost biin on the smaller side to encourage more frequent dumping. If it gets too long it gets moldy and the bin gets smelly. You can say the same about my garbage can, I neeed to take it out on a time schedule, not on a fullness level.