Run details:
Mozilla/5.0 (Linux; Android 9; Fire) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.4389.105 Safari/537.36
Chrome 89
Android
Desktop
3 years ago
Test name Executions per second
classcat(arr) 139686.7 Ops/sec
classcat(obj) 211706.8 Ops/sec
clsx(arr) 209403.6 Ops/sec
clsx(obj) 231166.2 Ops/sec
objstr(obj) 0.0 Ops/sec
arr.filter(Boolean).join(" ") 129794.1 Ops/sec
HTML Preparation code:
Script Preparation code:
Tests:
  • classcat(arr)

  • classcat(obj)

  • clsx(arr)

  • clsx(obj)

  • objstr(obj)

  • arr.filter(Boolean).join(" ")