js-confuser icon indicating copy to clipboard operation
js-confuser copied to clipboard

OIbfuscated code runs a lot slower

Open morphx666 opened this issue 7 months ago • 0 comments

Describe the bug:

When using the obfuscated code, the browser runs considerably slower.

Windows Task Manager reports Firefox consuming over 17% CPU and Chrome over 12%. When running the un-obfuscated version, both Firefox and Chrome utilize less than 2% CPU

Config and Small code sample

Config:

{
    target: "browser",
    preset: "medium",
    minify: true
}

The code is a bit large to share here, but you can compare both versions using these links:

  • Un-obfuscated: https://oyelaradio.com/player/
  • Obfuscated: https://oyelaradio.com/player?force-obfuscated

Expected behavior

I was hoping the obfuscated code to run slower... but not like x8 times slower.


Is there something I can do to improve the performance of the obfuscated code? Perhaps I'm doing something obviously wrong?

morphx666 avatar Mar 04 '25 22:03 morphx666