diff options
author | Aspen Smith <root@gws.fyi> | 2024-07-30T02·51-0400 |
---|---|---|
committer | clbot <clbot@tvl.fyi> | 2024-07-30T08·58+0000 |
commit | 8aa038a90e057e978c68998692857d95eb89459c (patch) | |
tree | 10a489164d8cc14b6ac36eab7f8a2c27be132e30 /tvix/glue/benches/eval.rs | |
parent | 3f6cd7aebc898e2b9c26db935491739b708b99b6 (diff) |
test(tvix/glue): Add a benchmark for firefox outPath r/8425
This is nice to test too - it's similar to hello, but runs for a lot longer (like 7.5 seconds on my laptop) which means we get even better stats for stuff. Change-Id: I7935818f10a6d846d446e685b9263a72d7e2aabd Reviewed-on: https://cl.tvl.fyi/c/depot/+/12061 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de> Autosubmit: aspen <root@gws.fyi>
Diffstat (limited to 'tvix/glue/benches/eval.rs')
-rw-r--r-- | tvix/glue/benches/eval.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tvix/glue/benches/eval.rs b/tvix/glue/benches/eval.rs index 3468fa4e431e..8958d9448573 100644 --- a/tvix/glue/benches/eval.rs +++ b/tvix/glue/benches/eval.rs @@ -71,6 +71,12 @@ fn eval_nixpkgs(c: &mut Criterion) { interpret(black_box("(import <nixpkgs> {}).hello.outPath")); }) }); + + c.bench_function("firefox outpath", |b| { + b.iter(|| { + interpret(black_box("(import <nixpkgs> {}).firefox.outPath")); + }) + }); } criterion_group!( |