Skip to content

Commit

Permalink
Specify --all-features to wasm-opt
Browse files Browse the repository at this point in the history
  • Loading branch information
fornwall committed Oct 19, 2024
1 parent 92b283c commit 0a7144a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/wasm/build-package.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ cargo build --release --target wasm32-unknown-unknown
wasm-bindgen --target nodejs --out-dir target/nodejs ../../target/wasm32-unknown-unknown/release/advent_of_code_wasm.wasm
which wasm-opt
wasm-opt --version
wasm-opt -O3 -o target/nodejs/advent_of_code_wasm_bg.wasm-optimized target/nodejs/advent_of_code_wasm_bg.wasm
wasm-opt --all-features -O3 -o target/nodejs/advent_of_code_wasm_bg.wasm-optimized target/nodejs/advent_of_code_wasm_bg.wasm
mv target/nodejs/advent_of_code_wasm_bg.wasm-optimized target/nodejs/advent_of_code_wasm_bg.wasm

cp README.md target/nodejs/
Expand Down

1 comment on commit 0a7144a

@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 Difference                     @@
#      Name   Old (instructions)   New (instructions)   Change (%)
   2023_1_1            1,484,899            1,484,899            0
   2023_1_2            1,457,481            1,457,481            0
   2023_2_1              565,161              565,161            0
   2023_2_2              538,286              538,286            0
   2023_3_1              831,295              831,295            0
   2023_3_2              627,076              627,076            0
   2023_4_1              911,480              911,480            0
   2023_4_2              922,696              922,696            0
   2023_5_1              638,287              638,287            0
   2023_5_2              773,128              773,128            0
   2023_6_1                3,681                3,681            0
   2023_6_2                2,650                2,650            0
   2023_7_1              661,071              661,071            0
   2023_7_2              657,242              657,242            0
   2023_8_1            1,174,404            1,174,656            0
   2023_8_2            2,580,100            2,580,220            0
   2023_9_1              799,584              799,584            0
   2023_9_2              811,311              811,311            0
  2023_10_1            3,134,163            3,134,163            0
  2023_10_2            3,697,269            3,697,269            0
  2023_11_1            1,741,772            1,741,772            0
  2023_11_2            1,741,796            1,741,796            0
  2023_12_1            4,374,265            4,374,265            0
  2023_12_2           68,540,590           68,540,590            0
  2023_13_1              583,257              583,257            0
  2023_13_2              584,313              584,313            0
  2023_14_1              839,811              839,804            0
  2023_14_2          289,510,489          289,510,475            0
  2023_15_1              807,770              807,770            0
  2023_15_2            1,087,799            1,087,799            0
  2023_16_1            1,074,620            1,074,620            0
  2023_16_2          220,133,110          220,133,110            0
  2023_17_1          216,844,218          216,844,218            0
  2023_17_2          666,065,701          666,065,701            0
  2023_18_1              368,072              368,072            0
  2023_18_2              438,362              438,362            0
  2023_19_1            3,006,227            3,006,171            0
  2023_19_2            1,918,551            1,918,495            0
  2023_20_1            4,637,892            4,637,904            0
  2023_20_2           18,235,304           18,235,316            0
  2023_21_1           90,603,056           90,603,056            0
  2023_21_2            7,807,776            7,807,776            0
  2023_22_1           10,749,685           10,749,685            0
  2023_22_2          291,836,472          291,836,472            0
  2023_23_1            1,693,599            1,693,638            0
  2023_23_2        1,129,554,259        1,129,554,298            0
  2023_24_1           16,288,801           16,288,801            0
  2023_24_2            1,183,618            1,183,618            0
  2023_25_1            5,163,125            5,163,241            0
Benchmark Instructions (count) Instructions (%)
2023_23_2 1,129,554,298 36.7
2023_17_2 666,065,701 21.6
2023_22_2 291,836,472 9.5
2023_14_2 289,510,475 9.4
2023_16_2 220,133,110 7.1
2023_17_1 216,844,218 7.0
2023_21_1 90,603,056 2.9
2023_12_2 68,540,590 2.2
2023_20_2 18,235,316 0.6
2023_24_1 16,288,801 0.5
2023_22_1 10,749,685 0.3
2023_21_2 7,807,776 0.3
2023_25_1 5,163,241 0.2
2023_20_1 4,637,904 0.2
2023_12_1 4,374,265 0.1
2023_10_2 3,697,269 0.1
2023_10_1 3,134,163 0.1
2023_19_1 3,006,171 0.1
2023_8_2 2,580,220 0.1
2023_19_2 1,918,495 0.1
2023_11_2 1,741,796 0.1
2023_11_1 1,741,772 0.1
2023_23_1 1,693,638 0.1
2023_1_1 1,484,899 0.0
2023_1_2 1,457,481 0.0
2023_24_2 1,183,618 0.0
2023_8_1 1,174,656 0.0
2023_15_2 1,087,799 0.0
2023_16_1 1,074,620 0.0
2023_4_2 922,696 0.0
2023_4_1 911,480 0.0
2023_14_1 839,804 0.0
2023_3_1 831,295 0.0
2023_9_2 811,311 0.0
2023_15_1 807,770 0.0
2023_9_1 799,584 0.0
2023_5_2 773,128 0.0
2023_7_1 661,071 0.0
2023_7_2 657,242 0.0
2023_5_1 638,287 0.0
2023_3_2 627,076 0.0
2023_13_2 584,313 0.0
2023_13_1 583,257 0.0
2023_2_1 565,161 0.0
2023_2_2 538,286 0.0
2023_18_2 438,362 0.0
2023_18_1 368,072 0.0
2023_6_1 3,681 0.0
2023_6_2 2,650 0.0

Please sign in to comment.