CrossClj

0.1.0-alpha docs

SourceDocs



RECENT

    analysis

    Clojars

    Sep 21, 2017


    OWNER
    Alexandru Gherega, Ph.D.
    Independent Computer Science Laboratory
    Bucharest
    alex.gherega@gmail.com
    www.icslab.eu

    Readme

    Index of all namespaces


    The README below is fetched from the published project artifact. Some relative links may be broken.

    analysis

    This is an utility belt design for extracting various information during an analysis.

    Instalation

    With leiningen/boot:

    [clj-http "3.7.0"]
    

    Modules

    1. Web Page Test

    2..n. TBD

    Web Page Test

    This module can be used in conjunction with webpagetest.org.

    Once you’ve run your test on this site you’ll have a specific URL for your test. Plug that into this module API and extract useful info.

    What you get

    For now we support only:

    (def ^:dynamic objective-values {:load-time "LoadTime"
                                     :first-byte "TTFB"
                                     :start-render "StartRender"
                                     :visual-complete "VisualComplete"
                                     :speed-index "SpeedIndex"
                                     :fst-interactive "FirstInteractive"
                                     :doc-complete "DocComplete"
                                     :fully-loaded "FullyLoaded"
                                     :bytes-in "BytesIn"})'''
    

    But since this is dynamic you can extend it to your liking.

    Usage

    (analysis.web-page-test/extract-value "https://www.webpagetest.org/result/**your-hash-number**/" 1 :bytes-in)
    

    In this example you’re passing the URL from your test, the second argument represents the run of your test (at the momemnt you can have 1 2 or 3), and :bytes-in is a key from the objective-values map.

    License

    Copyright © 2017 FIXME

    Distributed under the Eclipse Public License either version 1.0 or (at your option) any later version.