Skip to content

Commit 7c1127d

Browse files
author
LAPTOP-465HP6VI\Victor
committed
More details about the JavaScript JIT and when the full optimizing compiler kicks in on a separate thread.
1 parent de730bf commit 7c1127d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

readme.md

+5
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,9 @@ Discussion, benchmarks and usage in https://duvanenko.tech.blog/2017/06/15/faste
1313
This is a stable sort, while JavaScript built-in is not stable. This sort algorithm is not in-place, returning a new sorted array.
1414
Discussion, benchmarks and usage in https://duvanenko.tech.blog/2017/07/10/sorting-arrays-of-objects-in-javascript-with-radix-sort/
1515

16+
When you benchmark these algorithms keep in mind that for the first one or two runs a basic JavaScript compiler is used, providing fast
17+
time to start up and to give time for the full optimizing compiler to run. After these two runs optimized code starts being used,
18+
revealing the full performance of LSD Radix Sort. See https://blog.sessionstack.com/how-javascript-works-inside-the-v8-engine-5-tips-on-how-to-write-optimized-code-ac089e62b12e
19+
for more details about the JIT engine in Chrome.
20+
1621
If you have a specific needs for higher performance algorithms, let us know.

0 commit comments

Comments
 (0)