-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
deno_bench.ts
31 lines (30 loc) · 875 Bytes
/
deno_bench.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import { schedule } from "./js-api/scheduler.js";
Deno.bench("basic bench for issue #3 (https://github.com/tijlleenders/ZinZen-scheduler/issues/3)", () => {
schedule({
"startDate": "2022-01-01",
"endDate": "2022-01-02",
"goals": [
{
"id": 1,
"title": "shopping",
"duration": 1,
"start": "2022-01-01T10:00:00",
"deadline": "2022-01-01T13:00:00",
},
{
"id": 2,
"title": "dentist",
"duration": 1,
"start": "2022-01-01T10:00:00",
"deadline": "2022-01-01T11:00:00",
},
{
"id": 3,
"title": "exercise",
"duration": 1,
"start": "2022-01-01T10:00:00",
"deadline": "2022-01-01T18:00:00",
},
],
})
});