-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathconfigJS2JSON.js
More file actions
101 lines (86 loc) · 2.55 KB
/
configJS2JSON.js
File metadata and controls
101 lines (86 loc) · 2.55 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
import fs from "fs";
import NB_RT_c from "./config/NB_RT.js";
import in_it_c from "./config/indexnodes_indextime.js";
import nq_RT_1m_c from "./config/nq_RT_1m.js";
import nq_RT_50m_4qn_c from "./config/nq_RT_50m_4qn.js";
import nq_RT_50m_8qn_c from "./config/nq_RT_50m_8qn.js";
import nq_RT_1m_vps_c from "./config/nq_RT_1m_vps.js";
import nq_RT_50m_4qn_vps_c from "./config/nq_RT_50m_4qn_vps.js";
import nq_RT_50m_8qn_vps_c from "./config/nq_RT_50m_8qn_vps.js";
import Recall_RT_sift_hnsw_c from "./config/Recall_RT_sift_hnsw.js";
import Recall_RT_sift_ivf_flat_c from "./config/Recall_RT_sift_ivf_flat.js";
import Recall_RT_sift_ivf_sq8_c from "./config/Recall_RT_sift_ivf_sq8.js";
import Recall_RT_glove_ivf_flat_c from "./config/Recall_RT_glove_ivf_flat.js";
import RT_QPS_1m_c from "./config/RT_QPS_1m.js";
import queryNodes_QPS_50m_c from "./config/queryNodes_QPS_50m.js";
const jsonDir = "./config_json/";
fs.writeFileSync(
jsonDir + "NB_RT_c" + ".json",
JSON.stringify(NB_RT_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "in_it_c" + ".json",
JSON.stringify(in_it_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "nq_RT_1m_c" + ".json",
JSON.stringify(nq_RT_1m_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "nq_RT_50m_4qn_c" + ".json",
JSON.stringify(nq_RT_50m_4qn_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "nq_RT_50m_8qn_c" + ".json",
JSON.stringify(nq_RT_50m_8qn_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "nq_RT_1m_vps_c" + ".json",
JSON.stringify(nq_RT_1m_vps_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "nq_RT_50m_4qn_vps_c" + ".json",
JSON.stringify(nq_RT_50m_4qn_vps_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "nq_RT_50m_8qn_vps_c" + ".json",
JSON.stringify(nq_RT_50m_8qn_vps_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "Recall_RT_sift_hnsw_c" + ".json",
JSON.stringify(Recall_RT_sift_hnsw_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "Recall_RT_sift_ivf_flat_c" + ".json",
JSON.stringify(Recall_RT_sift_ivf_flat_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "Recall_RT_sift_ivf_sq8_c" + ".json",
JSON.stringify(Recall_RT_sift_ivf_sq8_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "Recall_RT_glove_ivf_flat_c" + ".json",
JSON.stringify(Recall_RT_glove_ivf_flat_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "RT_QPS_1m_c" + ".json",
JSON.stringify(RT_QPS_1m_c, null, 2),
() => {}
);
fs.writeFileSync(
jsonDir + "queryNodes_QPS_50m_c" + ".json",
JSON.stringify(queryNodes_QPS_50m_c, null, 2),
() => {}
);