ArchiveTeam / ArchiveBot

ArchiveBot, an IRC bot for archiving websites
http://www.archiveteam.org/index.php?title=ArchiveBot
MIT License
357 stars 72 forks source link

Modernize the dashboard JavaScript and improve things #558

Closed ivan closed 1 year ago

ivan commented 1 year ago

Notable changes:

I had to move some dashboard3 things to avoid confusing the two dashboard JavaScript files.

I didn't test whether the Ruby still serves things correctly.

obsolete tests results for 9cf8f4144576891e4c26a58f97963ff867657134 Test results with all job windows collapsed, **Chrome** 116.0.5817.5 (Official Build) dev (64-bit) on Windows 10 22H2 on an ancient laptop (Intel Core i7-2620M), no browser extensions: 9cf8f4144576891e4c26a58f97963ff867657134 uses 55% of the CPU time of the current dashboard and ~25% as much memory. ![archivebot dashboard in chrome 2023-06-09_23-34-41 668182](https://github.com/ArchiveTeam/ArchiveBot/assets/4458/ffe7700f-d849-4a9c-b73d-8c7984969ff9) --- Test results with all job windows collapsed, **Firefox** 114.0 on Windows 10 22H2 on an ancient laptop (Intel Core i7-2620M), no browser extensions: 9cf8f4144576891e4c26a58f97963ff867657134 uses ~95% of the CPU time of the current dashboard and about the same amount of memory (it fluctuates as Firefox takes a while to do a full GC). ![archivebot dashboard in firefox 2023-06-09_23-43-23 246469](https://github.com/ArchiveTeam/ArchiveBot/assets/4458/7e9da02c-112f-4a00-ab6d-ec9d8f0a2683) Unlike Chrome's Task Manager, Firefox's `about:processes` doesn't have a `CPU time` column, so the difference is less measurable.

Test results with all job windows collapsed, Chrome 116.0.5817.5 (Official Build) dev (64-bit) on Windows 10 22H2 on an ancient laptop (Intel Core i7-2620M), no browser extensions:

f7d5b1a60c689af35519b56f483f4e0c459f7e41 uses 40% of the CPU time of the current dashboard and ~25% as much memory.

ab in chrome 2023-06-10_00-25-52 051314


Test results with all job windows collapsed, Firefox 114.0 on Windows 10 22H2 on an ancient laptop (Intel Core i7-2620M), no browser extensions:

f7d5b1a60c689af35519b56f483f4e0c459f7e41 uses ~57% of the CPU time of the current dashboard and about the same amount of memory (it fluctuates as Firefox takes a while to do a full GC).

Unlike Chrome's Task Manager, Firefox's about:processes doesn't have a CPU time column, so the difference is less measurable.

ab in firefox 2023-06-10_00-30-19 177453