Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //wasm_module.main();
- wasm_module.init_edges_cpp();
- for (var i=0; i < all_edges.length; i++) {
- wasm_module.add_edge_cpp(i, all_edges[i][0], all_edges[i][1], all_edges[i][2]);
- }
- wasm_module.fill_graph_cpp();
- wasm_module.init_cpp(162);
- var s_t = performance.now()
- for (var i=0; i < 10; i++) {
- /*wasm_module.init_cpp();*/
- wasm_module.get_dists_cpp(157, 162);
- }
- console.log((performance.now() - s_t)/10)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement