1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-03 09:41:10 +03:00
juvix/bench
Paul Cadman 1fd3b3437a
Fix benchmarks suite juvix compile variants (#2717)
The `--target` flag was replaced by subcommands in
https://github.com/anoma/juvix/pull/2700

This PR fixes the benchmark suite to use `juvix compile native` and
`juvix compile wasi`.

In addition this PR adds as `compile-only` target to `juvix-bench`

The compile-only target only compiles the executable for each variant of
each suite. It doesn't actually run the benchmarks. This is useful when
checking that the variant build steps are correct before committing.

Example to run with stack:

```
stack bench --ba 'compile-only'
```
2024-04-10 18:54:03 +02:00
..
hyperfine Release v0.6.0 (#2676) 2024-03-01 09:14:32 +00:00
Base.hs Automatized benchmarks (#1673) 2023-01-05 17:48:26 +01:00
Main.hs Fix benchmarks suite juvix compile variants (#2717) 2024-04-10 18:54:03 +02:00
Suites.hs Add Juvix to all benchmarks (#1974) 2023-04-04 13:20:38 +02:00
Variants.hs Fix benchmarks suite juvix compile variants (#2717) 2024-04-10 18:54:03 +02:00