Skip to content

Commit 066fff1

Browse files
addaleaxaduh95
authored andcommitted
benchmark: remove old alias usage in ffi benchmarks
Follow-up to df09b2a. Refs: #63482 Signed-off-by: Anna Henningsen <anna@addaleax.net> PR-URL: #63666 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Stephen Belanger <admin@stephenbelanger.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 238b54e commit 066fff1

6 files changed

Lines changed: 6 additions & 6 deletions

File tree

benchmark/ffi/add-f64.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
1313
ensureFixtureLibrary();
1414

1515
const { lib, functions } = ffi.dlopen(libraryPath, {
16-
add_f64: { result: 'f64', parameters: ['f64', 'f64'] },
16+
add_f64: { return: 'f64', arguments: ['f64', 'f64'] },
1717
});
1818

1919
const add = functions.add_f64;

benchmark/ffi/add-i32.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
1313
ensureFixtureLibrary();
1414

1515
const { lib, functions } = ffi.dlopen(libraryPath, {
16-
add_i32: { result: 'i32', parameters: ['i32', 'i32'] },
16+
add_i32: { return: 'i32', arguments: ['i32', 'i32'] },
1717
});
1818

1919
const add = functions.add_i32;

benchmark/ffi/getpid.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const bench = common.createBenchmark(main, {
1010
});
1111

1212
const { lib, functions } = ffi.dlopen(null, {
13-
uv_os_getpid: { result: 'i32', parameters: [] },
13+
uv_os_getpid: { return: 'i32', arguments: [] },
1414
});
1515

1616
const getpid = functions.uv_os_getpid;

benchmark/ffi/many-args.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
1313
ensureFixtureLibrary();
1414

1515
const { lib, functions } = ffi.dlopen(libraryPath, {
16-
sum_6_i32: { result: 'i32', parameters: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] },
16+
sum_6_i32: { return: 'i32', arguments: ['i32', 'i32', 'i32', 'i32', 'i32', 'i32'] },
1717
});
1818

1919
const fn = functions.sum_6_i32;

benchmark/ffi/pointer-bigint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const bench = common.createBenchmark(main, {
1313
ensureFixtureLibrary();
1414

1515
const { lib, functions } = ffi.dlopen(libraryPath, {
16-
pointer_to_usize: { result: 'u64', parameters: ['pointer'] },
16+
pointer_to_usize: { return: 'u64', arguments: ['pointer'] },
1717
});
1818

1919
const fn = functions.pointer_to_usize;

benchmark/ffi/sum-buffer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const bench = common.createBenchmark(main, {
1414
ensureFixtureLibrary();
1515

1616
const { lib, functions } = ffi.dlopen(libraryPath, {
17-
sum_buffer: { result: 'u64', parameters: ['pointer', 'u64'] },
17+
sum_buffer: { return: 'u64', arguments: ['pointer', 'u64'] },
1818
});
1919

2020
function main({ n, size }) {

0 commit comments

Comments
 (0)