File: performance_markup.ml

package info (click to toggle)
ocaml-markup 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,340 kB
  • sloc: ml: 15,131; makefile: 89
file content (14 lines) | stat: -rw-r--r-- 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
(* This file is part of Markup.ml, released under the MIT license. See
   LICENSE.md for details, or visit https://github.com/aantron/markup.ml. *)

open Performance_common
open Markup

let (|>) x f = f x

let () =
  measure 100 "markup.ml" google_page "html" (fun () ->
    file google_page |> fst |> parse_html |> signals |> drain);

  measure 100 "markup.ml" xml_spec "xml" (fun () ->
    file xml_spec |> fst |> parse_xml |> signals |> drain)