Benchmarking in Radiant?

Is there a way to do benchmarking in Radiant? If so, is there a way
to benchmark a snippet?

Thanks

  • Ryan

Answered my own question:

tag “benchmark” do |tag|
Page.benchmark "BENCHMARK: #{tag.attr[‘name’]}"do
tag.expand
end
end

On Jun 21, 2007, at 5:19 PM, Ryan H. wrote:

Radiant mailing list
Post: [email protected]
Search: http://radiantcms.org/mailing-list/search/
Site: http://lists.radiantcms.org/mailman/listinfo/radiant


Ryan H.
Art of Mission, Inc.
3720 Gattis School Rd #800 PMB 245
Round Rock, TX 78664

800-722-1492 (phone)

www.artofmission.com
re[email protected]

Ryan H. wrote:

Answered my own question:

tag “benchmark” do |tag|
Page.benchmark "BENCHMARK: #{tag.attr[‘name’]}"do
tag.expand
end
end

Nice!


John L.
http://wiseheartdesign.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs