va
This commit is contained in:
parent
f13ad2d2ce
commit
f6f4edd7bd
3 changed files with 28 additions and 23 deletions
2
index.js
2
index.js
|
|
@ -1,6 +1,7 @@
|
|||
import { dlopen, FFIType } from "bun:ffi";
|
||||
|
||||
// Funzione JavaScript equivalente
|
||||
|
||||
function jsTest() {
|
||||
let c = "qwertyuiopasdfghjkllzxcvbnm123456789mnbvcxzlkjhgfdsapoiuytrewq1234567890";
|
||||
let j = '';
|
||||
|
|
@ -18,6 +19,7 @@ function jsTest() {
|
|||
console.log(`JavaScript Execution Time: ${end - start}ms`);
|
||||
}
|
||||
|
||||
|
||||
// Carica la libreria C
|
||||
const path = `./libtesticolo.so`;
|
||||
const { symbols } = dlopen(path, {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue