# Typical instruction limits

**URL:** <https://forum.dfinity.org/t/typical-instruction-limits/15798>\
**Category:** Developers\
**Created:** [October 7, 2022, 7:10pm UTC](https://forum.dfinity.org/t/typical-instruction-limits/15798 "2022-10-07T19:10:51Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Iceypee](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/iceypee/32/5362_2.png) [@Iceypee](https://forum.dfinity.org/u/Iceypee)\
**Post date:** [October 7, 2022, 7:10pm UTC](https://forum.dfinity.org/t/typical-instruction-limits/15798/1 "2022-10-07T19:10:51Z")

</div>

Does anyone have any instruction limit benchmarks for single message execution? Looping through a triemap filled with ~100k principals with a few arithmetic operations, I’m getting only 20-30k iterations before hitting execution limit exceeded. I tried with a buffer as well and it seems to still be an issue.

---

<div class="post-metadata">

**Author:** ![skilesare](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/skilesare/32/5609_2.png) [@skilesare](https://forum.dfinity.org/u/skilesare)\
**Post date:** [October 7, 2022, 8:14pm UTC](https://forum.dfinity.org/t/typical-instruction-limits/15798/2 "2022-10-07T20:14:53Z")

</div>

Give [GitHub - ZhenyaUsenko/motoko-hash-map: Stable hash maps for Motoko based on "deterministic hash map" algorithm by Tyler Close](https://github.com/ZhenyaUsenko/motoko-hash-map) a try. I’ve been using 6.0, but I think 7 is stable is as well. I’m not sure what is left with 8.0 before it is ready: @ZhenyaUsenko

---

<div class="post-metadata">

**Author:** ![Iceypee](https://sea1.discourse-cdn.com/flex023/user_avatar/forum.dfinity.org/iceypee/32/5362_2.png) [@Iceypee](https://forum.dfinity.org/u/Iceypee)\
**Post date:** [October 7, 2022, 8:23pm UTC](https://forum.dfinity.org/t/typical-instruction-limits/15798/3 "2022-10-07T20:23:28Z")

</div>

Appreciate it, will give it a try
