-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit 14dc8dd
Use performance.now() instead of Date.now()... (#3483)
* Use performance.now() instead of Date.now()...
* Wherever applicable (measuring performance, not time).
* Failback to support node < 16.0.0 (perf_hook not globally exposed)
* Failback to Date.now() for node < 8.5.0
✔ Tests passed with node > 16.0.0 (22.12.0)
✕ Couldn't pass with node prior 16.0.0 but not due to this changes.
https://nodejs.org/docs/latest-v8.x/api/perf_hooks.html#perf_hooks_performance_now
https://w3c.github.io/hr-time/
* Yarn prettier
* More lint fixes.
* Removed polyfill code for node <16
They are no longer supported:
#3483 (comment) 1 parent 8608fb8 commit 14dc8dd
3 files changed
+8
-8
lines changedLines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 | - | ||
40 | + | ||
41 | 41 |
| |
42 | 42 |
| |
43 | - | ||
43 | + | ||
44 | 44 |
| |
45 | 45 |
| |
46 | 46 |
| |
|
Lines changed: 2 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
4 | 4 |
| |
5 | 5 |
| |
6 | 6 |
| |
7 | - | ||
7 | + | ||
8 | 8 |
| |
9 | 9 |
| |
10 | 10 |
| |
11 | 11 |
| |
12 | 12 |
| |
13 | 13 |
| |
14 | - | ||
14 | + | ||
15 | 15 |
| |
16 | 16 |
| |
17 | 17 |
| |
|
Lines changed: 4 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 | - | ||
26 | + | ||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 | 30 |
| |
31 | 31 |
| |
32 | - | ||
32 | + | ||
33 | 33 |
| |
34 | 34 |
| |
35 | 35 |
| |
| |||
77 | 77 |
| |
78 | 78 |
| |
79 | 79 |
| |
80 | - | ||
80 | + | ||
81 | 81 |
| |
82 | - | ||
82 | + | ||
83 | 83 |
| |
84 | 84 |
| |
85 | 85 |
| |
|
0 commit comments