Commit a6fc750
committed
fix: guard benchmark main() behind require.main === module
Prevents the full 131-test benchmark suite from auto-executing
when the script is require()'d for syntax or import validation.
Exports main() for programmatic use.1 parent c3bcec2 commit a6fc750
1 file changed
Lines changed: 10 additions & 5 deletions
Lines changed: 10 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1806 | 1806 | | |
1807 | 1807 | | |
1808 | 1808 | | |
1809 | | - | |
1810 | | - | |
1811 | | - | |
1812 | | - | |
1813 | | - | |
| 1809 | + | |
| 1810 | + | |
| 1811 | + | |
| 1812 | + | |
| 1813 | + | |
| 1814 | + | |
| 1815 | + | |
| 1816 | + | |
| 1817 | + | |
| 1818 | + | |
1814 | 1819 | | |
0 commit comments