{"id":96,"date":"2009-03-24T19:47:39","date_gmt":"2009-03-24T19:47:39","guid":{"rendered":""},"modified":"2009-03-24T19:47:39","modified_gmt":"2009-03-24T19:47:39","slug":"cmake-vs-autotools-a-benchmark","status":"publish","type":"post","link":"https:\/\/blogs.gentoo.org\/lu_zero\/2009\/03\/24\/cmake-vs-autotools-a-benchmark\/","title":{"rendered":"cmake vs autotools, a benchmark"},"content":{"rendered":"<p>Recently <a href=\"http:\/\/wesnoth.org\">wesnoth<\/a> got released and there is already an ebuild in portage.<\/p>\n<p>Since upstream stated that autotools were being deprecated (actually some people come up to avoid that in the end) Mr_Bones crafted an ebuild using cmake.<\/p>\n<p>Here some values:<\/p>\n<p>build time for cmake -> 3.20m (take everything with at least some of variance)<\/p>\n<p>build time for wesnoth using cmake -> 8.15m (again some more, some less depending on the runs)<\/p>\n<p>build time for wesnoth using autotools -> 8.00m (again some less, some more depending on the runs)<\/p>\n<p>my method is quite simple:<br \/>\n&#8211; first I fetch the sources and then build some times cmake and wesnoth 1.6a and use time to see how much it takes.<br \/>\n&#8211; then I use the older ebuild 1.4.7, remove the no-python from src_prepare since its unneeded, I call it 1.6a-r1 and then build some times that one as well.<\/p>\n<p>Apparently cmake nearly add about 1\/3 to the actual build time if you don&#8217;t have it already installed (and you shouldn&#8217;t) and compared to the autotools system it adds some time by itself.<\/p>\n<p>In short people shouldn&#8217;t use cmake if autotools are available.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Recently wesnoth got released and there is already an ebuild in portage. Since upstream stated that autotools were being deprecated (actually some people come up to avoid that in the end) Mr_Bones crafted an ebuild using cmake. Here some values: build time for cmake -> 3.20m (take everything with at least some of variance) build &hellip; <a href=\"https:\/\/blogs.gentoo.org\/lu_zero\/2009\/03\/24\/cmake-vs-autotools-a-benchmark\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">cmake vs autotools, a benchmark<\/span><\/a><\/p>\n","protected":false},"author":10,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","jetpack_publicize_message":"","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true},"categories":[9],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p1aGWH-1y","_links":{"self":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/posts\/96"}],"collection":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/comments?post=96"}],"version-history":[{"count":0,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/posts\/96\/revisions"}],"wp:attachment":[{"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/media?parent=96"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/categories?post=96"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blogs.gentoo.org\/lu_zero\/wp-json\/wp\/v2\/tags?post=96"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}