-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #325 from nfdi4plants/performanceReport
Performance report
- Loading branch information
Showing
20 changed files
with
382 additions
and
182 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
module PerformanceTasks | ||
|
||
open BlackFox.Fake | ||
open Fake.DotNet | ||
|
||
open ProjectInfo | ||
open BasicTasks | ||
open Fake.Core | ||
|
||
module PerformanceReport = | ||
|
||
let mutable cpu = "" | ||
|
||
let promptCpu() = | ||
if cpu = "" then | ||
printfn "Please enter your cpu name" | ||
cpu <- System.Console.ReadLine() | ||
|
||
let testPerformancePy = BuildTask.create "testPerformancePy" [clean; build] { | ||
promptCpu() | ||
let path = "tests/Speedtest" | ||
//transpile py files from fsharp code | ||
run dotnet $"fable {path} -o {path}/py --lang python" "" | ||
// run pyxpecto in target path to execute tests in python | ||
run python $"{path}/py/program.py \"{cpu}\"" "" | ||
} | ||
let testPerformanceJs = BuildTask.create "testPerformanceJS" [clean; build] { | ||
promptCpu() | ||
let path = "tests/Speedtest" | ||
// transpile js files from fsharp code | ||
run dotnet $"fable {path} -o {path}/js" "" | ||
// run mocha in target path to execute tests | ||
run node $"{path}/js/program.js \"{cpu}\"" "" | ||
} | ||
let testPerformanceDotnet = BuildTask.create "testPerformanceDotnet" [clean; build] { | ||
promptCpu() | ||
let path = "tests/Speedtest" | ||
run dotnet $"run --project {path} \"{cpu}\"" "" | ||
} | ||
|
||
let perforanceReport = BuildTask.create "PerformanceReport" [PerformanceReport.testPerformancePy; PerformanceReport.testPerformanceJs; PerformanceReport.testPerformanceDotnet] { | ||
() | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.