koffi 0.9.19 → 0.9.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -1
- package/package.json +3 -3
- package/test/registry/machines.json +41 -11
- package/test/registry/sha256sum.txt +4 -4
- package/test/test.js +1 -1
package/README.md
CHANGED
|
@@ -254,7 +254,9 @@ node test.js info debian_x64
|
|
|
254
254
|
|
|
255
255
|
A basic benchmark based around Raylib is available, in three implementations: with Koffi, with node-ffi and with C code using Raylib (as a shared library).
|
|
256
256
|
|
|
257
|
-
In order to run it, go to `koffi/benchmark` and run `
|
|
257
|
+
In order to run it, go to `koffi/benchmark` and run `build.sh` before doing anything else.
|
|
258
|
+
|
|
259
|
+
Once this is done, you can execute each implementation with `time`, e.g. `time ./raylib_c 2000`.
|
|
258
260
|
|
|
259
261
|
Here are some results from 2022-04-15 on my machine (AMD Ryzen™ 7 5800H 16G):
|
|
260
262
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "koffi",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.20",
|
|
4
4
|
"description": "Fast and simple FFI (foreign function interface) for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"foreign",
|
|
@@ -18,12 +18,12 @@
|
|
|
18
18
|
"author": "Niels Martignène <niels.martignene@protonmail.com>",
|
|
19
19
|
"main": "src/index.js",
|
|
20
20
|
"scripts": {
|
|
21
|
-
"install": "cnoke",
|
|
21
|
+
"install": "cnoke koffi",
|
|
22
22
|
"test": "node test/test.js"
|
|
23
23
|
},
|
|
24
24
|
"license": "AGPL-3.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"cnoke": "^0.9.
|
|
26
|
+
"cnoke": "^0.9.26"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"chalk": "^4.1.2",
|
|
@@ -24,7 +24,10 @@
|
|
|
24
24
|
"tests": {
|
|
25
25
|
"Linux ARM32": {
|
|
26
26
|
"directory": "/home/debian/luigi",
|
|
27
|
-
"build":
|
|
27
|
+
"build": {
|
|
28
|
+
"Install": "npm install --production --ignore-scripts",
|
|
29
|
+
"Build": "node ../cnoke/cnoke.js"
|
|
30
|
+
},
|
|
28
31
|
"commands": {
|
|
29
32
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
30
33
|
"Test Misc": "node test/tests/misc.js",
|
|
@@ -59,7 +62,10 @@
|
|
|
59
62
|
"tests": {
|
|
60
63
|
"Linux ARM64": {
|
|
61
64
|
"directory": "/home/debian/luigi",
|
|
62
|
-
"build":
|
|
65
|
+
"build": {
|
|
66
|
+
"Install": "npm install --production --ignore-scripts",
|
|
67
|
+
"Build": "node ../cnoke/cnoke.js"
|
|
68
|
+
},
|
|
63
69
|
"commands": {
|
|
64
70
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
65
71
|
"Test Misc": "node test/tests/misc.js",
|
|
@@ -94,7 +100,10 @@
|
|
|
94
100
|
"tests": {
|
|
95
101
|
"Linux i386": {
|
|
96
102
|
"directory": "/home/debian/luigi",
|
|
97
|
-
"build":
|
|
103
|
+
"build": {
|
|
104
|
+
"Install": "npm install --production --ignore-scripts",
|
|
105
|
+
"Build": "node ../cnoke/cnoke.js"
|
|
106
|
+
},
|
|
98
107
|
"commands": {
|
|
99
108
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
100
109
|
"Test Misc": "node test/tests/misc.js",
|
|
@@ -129,7 +138,10 @@
|
|
|
129
138
|
"tests": {
|
|
130
139
|
"Linux x64": {
|
|
131
140
|
"directory": "/home/debian/luigi",
|
|
132
|
-
"build":
|
|
141
|
+
"build": {
|
|
142
|
+
"Install": "npm install --production --ignore-scripts",
|
|
143
|
+
"Build": "node ../cnoke/cnoke.js"
|
|
144
|
+
},
|
|
133
145
|
"commands": {
|
|
134
146
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
135
147
|
"Test Misc": "node test/tests/misc.js",
|
|
@@ -164,7 +176,10 @@
|
|
|
164
176
|
"tests": {
|
|
165
177
|
"Windows i386": {
|
|
166
178
|
"directory": "C:/Users/windows/Desktop/luigi32",
|
|
167
|
-
"build":
|
|
179
|
+
"build": {
|
|
180
|
+
"Install": "C:\\Node32\\node32.cmd npm install --production --ignore-scripts",
|
|
181
|
+
"Build": "C:\\Node32\\node32.cmd node ../cnoke/cnoke.js"
|
|
182
|
+
},
|
|
168
183
|
"commands": {
|
|
169
184
|
"Test Raylib": "seatsh C:\\Node32\\node32.cmd node test/tests/raylib.js",
|
|
170
185
|
"Test Misc": "C:\\Node32\\node32.cmd node test/tests/misc.js",
|
|
@@ -174,7 +189,10 @@
|
|
|
174
189
|
|
|
175
190
|
"Windows x64": {
|
|
176
191
|
"directory": "C:/Users/windows/Desktop/luigi64",
|
|
177
|
-
"build":
|
|
192
|
+
"build": {
|
|
193
|
+
"Install": "C:\\Node64\\node64.cmd npm install --production --ignore-scripts",
|
|
194
|
+
"Build": "C:\\Node64\\node64.cmd node ../cnoke/cnoke.js"
|
|
195
|
+
},
|
|
178
196
|
"commands": {
|
|
179
197
|
"Test Raylib": "seatsh C:\\Node64\\node64.cmd node test/tests/raylib.js",
|
|
180
198
|
"Test Misc": "C:\\Node64\\node64.cmd node test/tests/misc.js",
|
|
@@ -209,7 +227,10 @@
|
|
|
209
227
|
"tests": {
|
|
210
228
|
"FreeBSD x64": {
|
|
211
229
|
"directory": "/home/freebsd/luigi",
|
|
212
|
-
"build":
|
|
230
|
+
"build": {
|
|
231
|
+
"Install": "npm install --production --ignore-scripts",
|
|
232
|
+
"Build": "node ../cnoke/cnoke.js"
|
|
233
|
+
},
|
|
213
234
|
"commands": {
|
|
214
235
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
215
236
|
"Test Misc": "node test/tests/misc.js",
|
|
@@ -244,7 +265,10 @@
|
|
|
244
265
|
"tests": {
|
|
245
266
|
"FreeBSD i386": {
|
|
246
267
|
"directory": "/home/freebsd/luigi",
|
|
247
|
-
"build":
|
|
268
|
+
"build": {
|
|
269
|
+
"Install": "npm install --production --ignore-scripts",
|
|
270
|
+
"Build": "node ../cnoke/cnoke.js"
|
|
271
|
+
},
|
|
248
272
|
"commands": {
|
|
249
273
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
250
274
|
"Test Misc": "node test/tests/misc.js",
|
|
@@ -279,7 +303,10 @@
|
|
|
279
303
|
"tests": {
|
|
280
304
|
"FreeBSD ARM64": {
|
|
281
305
|
"directory": "/home/freebsd/luigi",
|
|
282
|
-
"build":
|
|
306
|
+
"build": {
|
|
307
|
+
"Build": "npm install --production --ignore-scripts",
|
|
308
|
+
"Install": "node ../cnoke/cnoke.js"
|
|
309
|
+
},
|
|
283
310
|
"commands": {
|
|
284
311
|
"Test Raylib": "xvfb-run node test/tests/raylib.js",
|
|
285
312
|
"Test Misc": "node test/tests/misc.js",
|
|
@@ -298,7 +325,7 @@
|
|
|
298
325
|
},
|
|
299
326
|
|
|
300
327
|
"info": {
|
|
301
|
-
"version":
|
|
328
|
+
"version": 2,
|
|
302
329
|
"platform": "darwin",
|
|
303
330
|
"arch": "x64",
|
|
304
331
|
|
|
@@ -314,7 +341,10 @@
|
|
|
314
341
|
"tests": {
|
|
315
342
|
"macOS x64": {
|
|
316
343
|
"directory": "/Users/macos/luigi",
|
|
317
|
-
"build":
|
|
344
|
+
"build": {
|
|
345
|
+
"Install": "PATH=/usr/local/bin:/usr/bin:/bin npm install --production --ignore-scripts",
|
|
346
|
+
"Build": "PATH=/usr/local/bin:/usr/bin:/bin SDKROOT=/Library/Developer/CommandLineTools/SDKs/MacOSX11.3.sdk node ../cnoke/cnoke.js"
|
|
347
|
+
},
|
|
318
348
|
"commands": {
|
|
319
349
|
"Test Misc": "PATH=/usr/local/bin:/usr/bin:/bin node test/tests/misc.js",
|
|
320
350
|
"Test SQLite": "PATH=/usr/local/bin:/usr/bin:/bin node test/tests/sqlite.js"
|
|
@@ -37,9 +37,9 @@ bdeac2cca1d22d70c2d388a50709d5cba3069bbd4bd1bcb102955b0ee12ca3e9 *qemu/freebsd_i
|
|
|
37
37
|
8191cea63d738cdca6df0b2d2d6953675e1dd33cac4d98fff88ba4367b182b64 *qemu/freebsd_i386/disk.qcow2
|
|
38
38
|
10f2bc603b171368cacda43485f8f72567af0a9a490b7e0fa0c14c983ae66f16 *qemu/freebsd_i386/xvfb-run.sh
|
|
39
39
|
16a4f09b3e70b97f5cfb1cf9b913d67d0ec45c4342d202cc9a2b2cfee852a8de *qemu/macos_x64/ESP.qcow2
|
|
40
|
-
35abfe68efe9bb81b21399a41ebdf9074c377e09079d9b55ae6f8c6da0580a06 *qemu/macos_x64/install.md
|
|
41
40
|
5d2ac383371b408398accee7ec27c8c09ea5b74a0de0ceea6513388b15be5d1e *qemu/macos_x64/OVMF_VARS.fd
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
d79538ac489f1948b04b65f12c5618c28e4a5de0be062f5cf1d73e422a091a37 *qemu/macos_x64/install.txt
|
|
42
|
+
5bb918652a31eb2059450c8b0b9b2fdf51fb600a9bd892f4e6f66b4080e3e764 *qemu/macos_x64/macOS.qcow2
|
|
43
|
+
5cc2d42949c7e4e763db0abeb88299972bafef991d87dbf744a5108ef9190f6f *qemu/macos_x64/OVMF_VARS-1024x768.fd
|
|
44
|
+
53c234e5e8472b6ac51c1ae1cab3fe06fad053beb8ebfd8977b010655bfdd3c3 *qemu/macos_x64/VERSION
|
|
45
45
|
2a247500e8ad9aa479994097ba5976bd881fde4de1516abd14491f3dba9fe060 *qemu/macos_x64/OVMF_CODE.fd
|
package/test/test.js
CHANGED