Puppet::Environments::get_conf() results caching benchmark

10 views
Skip to first unread message

Bostjan Skufca

unread,
Apr 15, 2015, 10:35:34 PM4/15/15
to puppe...@googlegroups.com
I've just benchmarked catalog compilation, with and without caching results in Puppet::Environments::get_conf() function.

Without cache: 19 seconds (to compile catalog of 1633 resources)
With cache: 9 seconds.

Again I wonder: why are results of Puppet::Environments::get_conf() not cached?


Thanks for the answer,
b.

Bostjan Skufca

unread,
Apr 15, 2015, 10:48:52 PM4/15/15
to puppe...@googlegroups.com
I am terribly sorry for premature post!
Once I removed all the debugging output, the results were quite different:

- 9.5 seconds without the cache
- 7.5 seconds using cache

Still, this is about 20% speedup which I could quite use. Is it safe? :)

b.
Reply all
Reply to author
Forward
0 new messages