Skip to content

Commit

Permalink
chore: Fix links and paths (#2773)
Browse files Browse the repository at this point in the history
  • Loading branch information
helloitsjoe authored Nov 17, 2021
1 parent 7fcbdf2 commit 58bf5a5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Steps to get started:
working on.
- [Commit as you go][githelp].
- Include tests that cover all non-trivial code. The existing tests
in `test/` provide templates on how to test SWC's behavior in a
in `tests/` provide templates on how to test SWC's behavior in a
sandbox-environment. The internal crate `testing` provides a vast amount
of helpers to minimize boilerplate. See [`testing/lib.rs`] for an
introduction to writing tests.
Expand All @@ -77,14 +77,14 @@ After cloning the project there are a few steps required to get the project runn

```bash
yarn
( cd ecmascript/transforms; yarn )
( cd crates/swc_ecma_transforms; yarn )
```

3. Setup some environment variables which is required for tests.

```bash
export RUST_BACKTRACE=full
export PATH="$PATH:$PWD/ecmascript/transforms/node_modules/.bin"
export PATH="$PATH:$PWD/crates/swc_ecma_transforms/node_modules/.bin"
export RUST_MIN_STACK=16777216
```

Expand Down Expand Up @@ -170,8 +170,10 @@ adding labels to triage issues:
[e-easy]: https://github.com/swc-project/swc/labels/E-easy
[e-mentor]: https://github.com/swc-project/swc/labels/E-mentor
[code of conduct]: https://www.rust-lang.org/conduct.html
[development-models]: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/getting-started/about-collaborative-development-models
[discord]: https://discord.gg/2ZhncgMt
[`testing/lib.rs`]: https://github.com/swc-project/swc/blob/main/testing/src/lib.rs
[`testing/lib.rs`]: https://github.com/swc-project/swc/blob/main/crates/testing/src/lib.rs
[irlo]: https://internals.rust-lang.org/
[lru]: https://docs.github.com/en/search-github/getting-started-with-searching-on-github/sorting-search-results#sort-by-updated-date
[subcommands]: https://doc.rust-lang.org/cargo/reference/external-tools.html#custom-subcommands
[issue-tracker]: https://github.com/swc-project/swc/issues

1 comment on commit 58bf5a5

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Benchmark

Benchmark suite Current: 58bf5a5 Previous: 7fcbdf2 Ratio
base_tr_fixer 23347 ns/iter (± 431) 23497 ns/iter (± 402) 0.99
base_tr_resolver_and_hygiene 129188 ns/iter (± 25839) 128705 ns/iter (± 12377) 1.00
codegen_es2015 52262 ns/iter (± 597) 51900 ns/iter (± 276) 1.01
codegen_es2016 52268 ns/iter (± 338) 52049 ns/iter (± 365) 1.00
codegen_es2017 52190 ns/iter (± 459) 51777 ns/iter (± 425) 1.01
codegen_es2018 52436 ns/iter (± 356) 51881 ns/iter (± 474) 1.01
codegen_es2019 52083 ns/iter (± 322) 51998 ns/iter (± 414) 1.00
codegen_es2020 52439 ns/iter (± 3803) 51783 ns/iter (± 257) 1.01
codegen_es3 51233 ns/iter (± 165) 51935 ns/iter (± 362) 0.99
codegen_es5 51211 ns/iter (± 278) 51687 ns/iter (± 357) 0.99
full_es2015 183407947 ns/iter (± 8727375) 181679724 ns/iter (± 7036222) 1.01
full_es2016 140651526 ns/iter (± 8439513) 142319726 ns/iter (± 4888081) 0.99
full_es2017 151672539 ns/iter (± 8081684) 149174655 ns/iter (± 7048269) 1.02
full_es2018 150214383 ns/iter (± 8158085) 148387369 ns/iter (± 6804152) 1.01
full_es2019 150676685 ns/iter (± 8318564) 146495496 ns/iter (± 7398628) 1.03
full_es2020 149917659 ns/iter (± 18240086) 145813877 ns/iter (± 7139442) 1.03
full_es3 224595841 ns/iter (± 27446292) 212478250 ns/iter (± 14714663) 1.06
full_es5 207267999 ns/iter (± 19601705) 200440419 ns/iter (± 12649996) 1.03
parser 660389 ns/iter (± 13945) 653273 ns/iter (± 15128) 1.01
ser_ast_node 144 ns/iter (± 5) 144 ns/iter (± 6) 1
ser_serde 159 ns/iter (± 4) 159 ns/iter (± 5) 1
emit_colors 18760978 ns/iter (± 24137915) 19216934 ns/iter (± 25532114) 0.98
emit_large 116809587 ns/iter (± 176095354) 111398861 ns/iter (± 166541433) 1.05
base_clone 2253049 ns/iter (± 80628) 2249549 ns/iter (± 44169) 1.00
fold_span 3887167 ns/iter (± 594073) 3754055 ns/iter (± 53717) 1.04
fold_span_panic 4030473 ns/iter (± 250703) 3971914 ns/iter (± 111869) 1.01
visit_mut_span 2765733 ns/iter (± 131298) 2749049 ns/iter (± 80621) 1.01
visit_mut_span_panic 2848998 ns/iter (± 164774) 2801299 ns/iter (± 36182) 1.02
ast_clone 16886 ns/iter (± 159) 16666 ns/iter (± 323) 1.01
ast_clone_to_stable 50590 ns/iter (± 323) 51252 ns/iter (± 395) 0.99
ast_clone_to_stable_then_to_unstable 91802 ns/iter (± 433) 92275 ns/iter (± 581) 0.99
json_deserialize 1930774 ns/iter (± 5375) 1932164 ns/iter (± 3997) 1.00
json_serialize 93536 ns/iter (± 267) 92929 ns/iter (± 303) 1.01
boxing_boxed 143 ns/iter (± 0) 147 ns/iter (± 0) 0.97
boxing_boxed_clone 70 ns/iter (± 0) 68 ns/iter (± 0) 1.03
boxing_unboxed 129 ns/iter (± 0) 132 ns/iter (± 1) 0.98
boxing_unboxed_clone 63 ns/iter (± 0) 63 ns/iter (± 0) 1

This comment was automatically generated by workflow using github-action-benchmark.

Please sign in to comment.