stylex icon indicating copy to clipboard operation
stylex copied to clipboard

[docs] api notes for defineConsts

Open mellyeliu opened this issue 7 months ago • 2 comments

Will wait until the rest of items in https://github.com/facebook/stylex/issues/1037 to merge

image

mellyeliu avatar May 06 '25 08:05 mellyeliu

workflow: benchmarks/perf

Comparison of performance test results, measured in operations per second. Larger is better.

[email protected] compare node ./compare.js /tmp/tmp.EzGFxS6EWs /tmp/tmp.n1IZYnmhf4

Results Base Patch Ratio
babel-plugin: stylex.create
· basic create 538 533 0.99 -
· complex create 194 197 1.02 +
babel-plugin: stylex.createTheme
· basic themes 457 466 1.02 +
· complex themes 43 42 0.98 -

github-actions[bot] avatar May 06 '25 08:05 github-actions[bot]

workflow: benchmarks/size

Comparison of minified (terser) and compressed (brotli) size results, measured in bytes. Smaller is better.

[email protected] compare node ./compare.js /tmp/tmp.FyjrHVMs1u /tmp/tmp.ZA7ROA3mMc

Results Base Patch Ratio
@stylexjs/stylex/lib/cjs/stylex.js
· compressed 1,200 1,200 1.00
· minified 3,513 3,513 1.00
@stylexjs/stylex/lib/cjs/inject.js
· compressed 1,227 1,227 1.00
· minified 3,224 3,224 1.00
benchmarks/size/.build/bundle.js
· compressed 537,611 537,611 1.00
· minified 7,435,904 7,435,904 1.00
benchmarks/size/.build/stylex.css
· compressed 100,509 100,509 1.00
· minified 754,513 754,513 1.00

github-actions[bot] avatar May 06 '25 08:05 github-actions[bot]