Giter VIP home page Giter VIP logo

perfutil's People

Contributors

eiriktsarpalis avatar gosha avatar haf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

perfutil's Issues

Q: Saving history file

Hi,

I have a question about the usage of this library: how are you persisting the save file across runs? Are you saving it in a folder on your laptop and running it once in a while, or are you letting TeamCity or some other CI server do it?

Do you have a recommendation?

PerfUtil.Extensions.repeat has annoying signature

Example code resulting:

  testList "performance tests" [
    testPerfHistory "perf-GET" server_factory version [
      perfTest "GET /" <| fun harness ->
        repeat 100 (fun _ -> harness.Serve (OK "a") |> req GET "/" None |> ignore) ()
      perfTest "POST / n' mirror" <| fun harness ->
        repeat 100 (fun _ ->
          use data = new FormUrlEncodedContent(dict [ "long", longData])
          Assert.Equal("expecting form data to be returned", longData, harness.Serve (getFormValue "long") |> req POST "/" (Some data))) ()
      ]
    ]

As you can see, I have to pass it () at the end, because the state parameter is after the function. Perhaps it would be nicer to pass the state before the function so that I can use the

repeat 100 () <| fun _ ->
  // do things
  ()

syntax?

WARNING: Past session 'v0.5.0' was performed on foreign host 'unknown'.

Host unknown?

I can't find a parameter either to set the hostname with. I'm using this code:

        let tester =
            new PastImplementationComparer<_>(
                subject, testRunId, conf.historyFile, conf.comparer,
                conf.verbose, conf.throwOnError, conf.overwrite)

        testCase name <| fun _ ->
            let results = PerfTest.run (fun () -> tester :> PerformanceTester<'a>) tests
            tester.PersistCurrentResults()
            conf.handleResults(conf.historyFile, results)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.