CARVIEW |
Select Language
HTTP/2 302
server: nginx
date: Sat, 09 Aug 2025 09:36:55 GMT
content-type: text/plain; charset=utf-8
content-length: 0
x-archive-redirect-reason: found capture at 20100528224934
location: https://web.archive.org/web/20100528224934/https://github.com/webflint/benchmarks
server-timing: captures_list;dur=0.732936, exclusion.robots;dur=0.026707, exclusion.robots.policy;dur=0.012020, esindex;dur=0.012467, cdx.remote;dur=20.474032, LoadShardBlock;dur=161.593553, PetaboxLoader3.datanode;dur=37.021274, PetaboxLoader3.resolve;dur=49.593342
x-app-server: wwwb-app225
x-ts: 302
x-tr: 225
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=0
set-cookie: wb-p-SERVER=wwwb-app225; path=/
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
HTTP/2 200
server: nginx
date: Sat, 09 Aug 2025 09:36:56 GMT
content-type: text/html; charset=utf-8
x-archive-orig-server: nginx/0.7.61
x-archive-orig-date: Fri, 28 May 2010 22:49:34 GMT
x-archive-orig-connection: close
x-archive-orig-status: 200 OK
x-archive-orig-etag: "f202a9e502f083d2d36e01c997552976"
x-archive-orig-x-runtime: 284ms
x-archive-orig-content-length: 19401
x-archive-orig-cache-control: private, max-age=0, must-revalidate
x-archive-guessed-content-type: text/html
x-archive-guessed-charset: utf-8
memento-datetime: Fri, 28 May 2010 22:49:34 GMT
link: ; rel="original", ; rel="timemap"; type="application/link-format", ; rel="timegate", ; rel="first memento"; datetime="Fri, 28 May 2010 22:49:34 GMT", ; rel="memento"; datetime="Fri, 28 May 2010 22:49:34 GMT", ; rel="next memento"; datetime="Mon, 11 Jun 2018 00:05:12 GMT", ; rel="last memento"; datetime="Sun, 25 Oct 2020 22:37:36 GMT"
content-security-policy: default-src 'self' 'unsafe-eval' 'unsafe-inline' data: blob: archive.org web.archive.org web-static.archive.org wayback-api.archive.org athena.archive.org analytics.archive.org pragma.archivelab.org wwwb-events.archive.org
x-archive-src: 52_16_20100528224727_crawl100-c/52_16_20100528224915_crawl101.arc.gz
server-timing: captures_list;dur=5.042443, exclusion.robots;dur=0.019344, exclusion.robots.policy;dur=0.009997, esindex;dur=0.011794, cdx.remote;dur=24.750581, LoadShardBlock;dur=258.310709, PetaboxLoader3.resolve;dur=335.474722, PetaboxLoader3.datanode;dur=104.380671, load_resource;dur=291.713996
x-app-server: wwwb-app225
x-ts: 200
x-tr: 626
server-timing: TR;dur=0,Tw;dur=0,Tc;dur=1
x-location: All
x-rl: 0
x-na: 0
x-page-cache: MISS
server-timing: MISS
x-nid: DigitalOcean
referrer-policy: no-referrer-when-downgrade
permissions-policy: interest-cohort=()
content-encoding: gzip
webflint's benchmarks at master - GitHub
webflint / benchmarks
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
click here to add a description
click here to add a homepage
Sending Request…
Simple component to time various sections of code. Supports multiple timers, and will list or graph results. — Read more
name | age | message | |
---|---|---|---|
![]() |
README.txt | Loading commit data... ![]() |
|
![]() |
benchmark.cfc | ||
![]() |
views/ |
README.txt
The benchmark is a simple component that measures the execution time of code blocks. To use the benchmark Component, you instantiate the compontent: <cfset timer = createObject("component", "com.webflint.benchmarks.Benchmark").init() /> You can then call the start and stop functions to capture execution times: <cfset timer.start("Example Timer") /> run some code between start and stop <cfset timer.stop("Example Timer") /> the metadata for a timer includes the total execution time for all occurances and the number of times the timer was started and stopped. <cfset result = timer.get("Example Timer") /> <cfoutput>The Example Timer took: #result.duration#ms, and ran #result.count# times</cfoutput> You may register any number of timers by specifying a new name for the timer.start( name ) function. timers can also be nested. All running timers can be returned by calling the timer.getAll() function which returns a structure of metadata for all the timers. A couple functions can output the current benchmarks at any given time and give you a visual view of the timers: LIST OUTPUT a html ordered list of the current benchmarks <cfoutput>#timer.list()#</cfoutput> GRAPH OUTPUT A png of the current benchmarks, yay CFCHART <cfoutput>#timer.graph()#</cfoutput> Or you can build your own output templates. A simple snippet can be added to the bottom of a page to show this information at the end of a request, and you can display the results as you wish. <cfset allTimers = timer.getAll() /> <cfoutput> <p><strong>Benchmark results</strong> <ul> <cfloop collection="#allTimers#" item="timer"> <li>#timer#: (#allTimers[timer].count#) #allTimers[timer].duration#ms</li> </cfloop> </ul> </p> </cfoutput>