# Munchausen benchmark

**URL:** <https://forums.swift.org/t/munchausen-benchmark/69798>\
**Category:** Using Swift\
**Tags:** benchmarks\
**Created:** [February 2, 2024, 4:38pm UTC](https://forums.swift.org/t/munchausen-benchmark/69798 "2024-02-02T16:38:34Z")\
**Posts on this page:** 1\
**Page:** 2

<div class="post-metadata">

**Author:** ![Finagolfin](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/finagolfin/32/34388_2.png) [@Finagolfin](https://forums.swift.org/u/Finagolfin)\
**Post date:** [February 5, 2024, 5:05pm UTC](https://forums.swift.org/t/munchausen-benchmark/69798/21 "2024-02-05T17:05:22Z")

</div>

> [@ksluder](#):
>
> I’m curious why the `cache` initializer went from 10 values to 3?

That's the way I always wrote it, since I could do the first three in my head, then the remaining 7 are calculated below at runtime, just like the C version does for all values. It adds to runtime, but is negligible for such a small array.

[Previous page](https://forums.swift.org/t/munchausen-benchmark/69798.md?page=1)
