Skip to content

Commit

Permalink
Make BENCHMARK configurable by env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
BSteffaniak committed Jul 6, 2023
1 parent 6608998 commit 474c8e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/flat/Flat.java
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public class Flat {
public static final boolean USE_INSTALLED_STDLIB = true;

// Set to 0 to not benchmark.
public static final int BENCHMARK = 0;
public static final int BENCHMARK = System.getenv("BENCHMARK") == null ? 0 : Integer.parseInt(System.getenv("BENCHMARK"));

public static final long SINGLE_THREAD = 0x1000000000000000l;
public static final long SMALL_BIN = 0x0100000000000000l;
Expand Down

0 comments on commit 474c8e1

Please sign in to comment.