Skip to content

Change in Core_bench interface? #37

Description

@samrat

I'm trying to run the code in https://github.com/realworldocaml/examples/blob/master/code/lists-and-patterns/main.topscript#L62. However, it looks like the type signature of Bench.bench has changed since the example was written:

utop[6]> #require "core_bench";;
utop[7]> open Core_bench.Std;;
utop[8]> Bench.bench;;
- : ?run_config:Bench.Run_config.t ->
    ?analysis_configs:Bench.Analysis_config.t list ->
    ?display_config:Bench.Display_config.t ->
    ?save_to_file:(Bench.Measurement.t -> bytes) ->
    Core_bench.Test.t list -> unit
= <fun>
utop[9]> let run_bench tests =
  Bench.bench
    ~ascii_table:true
    ~display:Textutils.Ascii_table.Display.column_titles
    tests
;;
Error: The function applied to this argument has type
         ?run_config:Bench.Run_config.t ->
         ?analysis_configs:Bench.Analysis_config.t list ->
         ?display_config:Bench.Display_config.t ->
         ?save_to_file:(Bench.Measurement.t -> bytes) -> unit
This argument cannot be applied with label ~ascii_table
utop[10]> 

The core_bench version I have installed is 112.35.00

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions