Commit Graph

43 Commits

Author SHA1 Message Date
overlookmotel 77a84a86d4 refactor(cfg, tasks): remove unnecessary #[expect] (#15307)
Tiny refactor. Remove unnecessary `#[expect(unsafe_code)]` attributes. We don't enable this lint rule anyway.
2025-11-05 10:58:20 +00:00
overlookmotel 186d18a39c style(benchmarks): reformat unsafe block (#9324)
Similar to #9316. In `NeverGrowInPlaceAllocator` used in benchmarks, reformat `unsafe {}` block introduced by the `unsafe_op_in_unsafe_fn` lint rule.
2025-02-24 10:03:54 +00:00
Boshen 1d81adac48 Rust Edition 2024 (#9289)
closes #9271

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-02-22 11:56:25 +08:00
overlookmotel 3ce8546393 ci(benchmarks): NeverGrowInPlaceAllocator not pub (#5727)
Global allocator used in benchmarks `NeverGrowInPlaceAllocator` doesn't need to be `pub`.
2024-09-12 12:58:13 +00:00
Boshen c3cfbfb480 chore: clippy::allow_attributes (#5521)
https://blog.rust-lang.org/2024/09/05/Rust-1.81.0.html#expectlint

https://rust-lang.github.io/rust-clippy/master/index.html#/allow_attributes
2024-09-06 03:07:02 +00:00
overlookmotel 666282a13b refactor(ci): remove extraneous doc comment (#5185)
Replace doc comment with plain comment.
2024-08-25 07:39:38 +00:00
overlookmotel 6ba60e978a ci: custom global allocator for benchmarks (#3776)
Use a custom global allocator for benchmarks. Will hopefully fix the wild variance in many benchmarks that we've been seeing, which I believe is caused by unpredictable behavior in the system allocator.
2024-06-19 17:02:19 +00:00
Boshen 178d205d53 chore: criterion2 (#2737) 2024-03-16 18:55:04 +08:00
Boshen 56aaf31fb1 refactor(benchmark): use codspeed for all benchmarks (#839) 2023-09-02 20:35:48 +08:00
Boshen b2db6f7ef1 chore(benchmark): remove the measurement_time 2023-08-24 14:31:19 +08:00
Don Isaac e7d8d4ba46 feat(linter): enable module record builder 2023-08-02 11:44:27 +08:00
Boshen a55ba5941c refactor(benchmark): use iter_with_large_drop (#587)
This also removes `black_box`, since criterion always black boxes the values for us
2023-07-23 11:35:16 +08:00
Boshen d30735677b refactor(semantic): merge semantic2 crate into semantic crate (#460) 2023-06-19 20:20:59 +08:00
Boshen 0d5db3d2f7 feat(benchmark): add bench semantic 2023-06-19 18:30:30 +08:00
Boshen 1d617e64ff ci: sleep 15s before running the benchmark (#382) 2023-05-24 21:12:33 +08:00
Boshen bedce7dc65 chore(benchmark): sync js versions to privatenumber/minification-benchmarks 2023-05-22 12:23:24 +08:00
Boshen ad2835f11b chore(rustfmt): run cargo fmt 2023-05-21 11:52:26 +08:00
Boshen df06c3a51a feat(benchmark): add minifier to benchmark (#365) 2023-05-20 22:31:04 +08:00
Boshen 14720e7c69 refactor: move SourceType from oxc_ast to oxc_span (#351)
related #350
2023-05-12 23:16:14 +08:00
Boshen 25a359bdd7 fix(benchmark): fix AstLower benchmark taking up too much memory 2023-05-11 10:42:55 +08:00
Boshen 48e524ddcf feat(ast_lower): scope tree (#344) 2023-05-10 22:38:34 +08:00
Boshen 60485669bb ci: cache release for benchmark, benchmark use fewer files (#345) 2023-05-10 22:13:11 +08:00
Boshen e07c9c5b03 chore(benchmark): disable benchmarking ast_lower 2023-05-07 17:23:50 +08:00
Boshen 72ba29f88b feat(hir): complete first iteration of ast lowering (#327) 2023-05-06 19:13:44 +08:00
Boshen 38831b3e41 fix(benchmark): parser benchmark should include allocator drop time (#334) 2023-05-04 20:26:27 +08:00
Boshen a7cd845fff feat: add cargo minsize task for tracking minification size (#276)
* feat: add `cargo minsize` task for tracking minification size

* add gzip
2023-04-14 13:07:37 +08:00
Boshen d117ce20a1 refactor(benchmark): add more benchmark files 2023-04-13 22:16:48 +08:00
Boshen d232199e1c refactor(parser): return Rc<Trivias> from TriviaBuilder (#231)
closes #229
2023-03-31 09:02:48 -07:00
Boshen d095d45818 refactor(semantic): add source_text and trivias to semantic 2023-03-25 14:19:53 +08:00
Boshen a1315e3999 refactor(rust): add clippy::clone_on_ref_ptr 2023-03-17 14:51:25 +08:00
Boshen 577a86edce chore(benchmark): increase benchmark measurement time, CI is too unstable 2023-03-12 22:05:21 +08:00
Boshen 2ee0b40656 chore: fix clippy warnings 2023-03-10 11:09:44 -08:00
Boshen e20c60d961 ci(benchmark): increase measurement time 2023-03-06 21:46:16 +08:00
Boshen 683778dfe2 feat(semantic): implement scopes (#135)
closes #119
2023-03-05 07:43:32 -08:00
Boshen cb886d8a36 refactor(benchmark): make the benchmark run faster by using variable measurement time 2023-03-05 23:19:51 +08:00
Boshen 7d3ce8b125 feat(benchmark): add semantic builder to benchmark (#129) 2023-03-04 23:09:19 -08:00
Boshen f17bd87f65 fix: try disable miri with custom allocators 2023-02-25 21:04:52 +08:00
Boshen bf76f6d8b6 chore: ignore miri on global allocators
error: unsupported operation: can't call foreign function `_rjem_malloc` on OS `linux`
   --> /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/jemallocator-0.5.0/src/lib.rs:104:13
    |
104 |             ffi::malloc(layout.size())
    |             ^^^^^^^^^^^^^^^^^^^^^^^^^^ can't call foreign function `_rjem_malloc` on OS `linux`
    |
    = help: this is likely not a bug in the program; it indicates that the program performed an operation that the interpreter does not support
    = note: BACKTRACE:
    = note: inside `<jemallocator::Jemalloc as std::alloc::GlobalAlloc>::alloc` at /home/runner/.cargo/registry/src/github.com-1ecc6299db9ec823/jemallocator-0.5.0/src/lib.rs:104:13: 104:39
note: inside `_::__rg_alloc`
   --> tasks/benchmark/src/main.rs:13:16
    |
12  | #[global_allocator]
    | ------------------- in this procedural macro expansion
13  | static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc;
    |                ^^^^^^^^^^^^^^^^^^^^^^
    = note: this error originates in the attribute macro `global_allocator` (in Nightly builds, run with -Z macro-backtrace for more info)
2023-02-25 20:45:38 +08:00
Boshen abb2f8c949 feat(rust): use mimalloc on windows 2023-02-25 11:58:57 +08:00
Boshen 4edd3f75ce feat(benchmark): check parser before benchmark 2023-02-20 18:23:36 +08:00
Boshen f50c067ccf fix(benchmark): fix panic on initialization 2023-02-11 18:45:50 -08:00
Boshen fb8faedb3e perf: add jemallocator 2023-02-11 18:45:50 -08:00
Boshen f90d660ec5 feat(tasks): add parser benchmark 2023-02-11 08:46:32 -08:00