1
mirror of https://github.com/jedisct1/libsodium.git synced 2024-12-23 20:15:19 -07:00
Commit Graph

44 Commits

Author SHA1 Message Date
Frank Denis
c9c34fb31f Always add -enable-sign-ext to the wasm-opt command-line
At least LLVM 18 seems to emit these instructions by default.
2024-05-19 13:04:29 +02:00
Frank Denis
d2ac311e0e Remove WAVM
This is very sad, but what used to be the best WebAssembly runtime
now appears to be abandoned.
2023-07-30 01:02:57 +02:00
Frank Denis
d0b011f0e3 Remove --experimental-wasm-bigint for the tests using Node 2023-07-27 12:13:21 +02:00
Frank Denis
d95e71db2e Check for iwasm existence before trying to use it 2023-02-07 18:37:21 +01:00
Frank Denis
0c60ecb3df iwasm requires precompilation to get decent speed 2022-12-19 12:34:32 +01:00
Frank Denis
3eb9e5a9a3 Bun: explicitly print the output of the wasm module to the console 2022-12-19 10:27:08 +01:00
Frank Denis
738eac1404 Bun requires an absolute path 2022-12-19 10:21:48 +01:00
Frank Denis
b584e537d3 Add support for Bun as a WebAssembly runtime 2022-12-19 10:14:56 +01:00
Frank Denis
58ae64d319 Node requires an async function to start wasm code 2022-12-18 21:36:35 +01:00
Frank Denis
a1f73b8cab Running tests with Node requires --experimental-wasm-bigint 2022-12-18 21:21:03 +01:00
Frank Denis
643bba3d27 Hide wasmedgec output 2022-12-18 21:06:44 +01:00
Frank Denis
95b72ea3c5 Remove unused MAX_MEMORY_TESTS constant 2022-12-17 21:47:35 +01:00
Frank Denis
ff001cadcb Add wazero to the list of tested wasm runtimes 2022-12-17 21:47:28 +01:00
Yi
fbc070487e
Update wasi-test-wrapper: SSVM was renamed to WasmEdge (#1179) 2022-05-12 12:36:11 +02:00
Frank Denis
77bf2e8273 Lucet has reached EOL 2022-01-22 23:34:01 +01:00
Frank Denis
5df53ce62b Revert "wasm-opt: use --strip-debug"
This reverts commit 85bdde2817.
2021-11-18 14:15:02 +01:00
Frank Denis
85bdde2817 wasm-opt: use --strip-debug 2021-11-17 21:02:17 +01:00
Frank Denis
421212fe42 Add LLVM, move lucet down 2021-03-10 18:49:13 +01:00
Frank Denis
55bb5af253 wasm bench: make lucet performance significantly better
By default, lucetc generates code with explicit bound checking,
even though the runtime has guard pages.

Elision only happens with --reserved-size=4GiB
2021-02-24 21:50:12 +01:00
Frank Denis
9039eea1e3 Add support for Node without wasmer-js 2021-02-20 21:26:23 +01:00
Frank Denis
cd5252328f WASM benchmarks: add lucet and WAMR, update wasmtime & wasmer 2021-02-19 23:13:10 +01:00
Frank Denis
d227affc63 Add wasm3 to the set of supported WebAssembly runtimes 2020-02-04 19:52:25 +01:00
Frank Denis
89f3a09737 Temporarily remove support for Lucet
Lucet doesn't work on MacOS any more, so testing it has become difficult.
2020-02-04 19:27:09 +01:00
Frank Denis
65621a1059 Add support for node via wasmer-js
V8 doesn't seem to be currently willing to load the metamorphic test.
2019-11-05 02:08:15 +01:00
Frank Denis
c9e95c59bd Run wasm-opt -O4 2019-10-22 17:16:54 +02:00
Frank Denis
b40674e29a Add support for WAVM as a WebAssembly runtime 2019-10-22 08:59:24 +02:00
Frank Denis
c638d25583 Try Lucet as a last option, after wasmer, due to its unstable interface 2019-10-11 17:31:57 +02:00
Frank Denis
da75f6824b Lucet removed the "fast" optimization level
We may drop Lucet support entirely until the interface gets more stable
2019-10-11 16:33:36 +02:00
Frank Denis
aaaaf7b8b8 Units are not required any more for Lucet 2019-07-23 22:23:50 +02:00
Frank Denis
55a81d9460 lucetc-wasi requires units with --max-heap-size 2019-07-09 20:41:34 +02:00
Frank Denis
922e91a7bf lucetc will eventually use --opt-level fast instead of --opt-level best 2019-05-30 20:30:45 +02:00
Frank Denis
91c98bad15 lucet seems to accept sizes without a suffix 2019-05-21 11:22:49 +02:00
Frank Denis
06f331d153 Use the same memory limit everywhere 2019-05-21 11:12:07 +02:00
Frank Denis
56d93ffe62 Lucet now has a --reserved-size knob 2019-05-02 10:16:21 +02:00
Frank Denis
cec56d867f Lucet: set min-reserved-size to the same value as max-heap-size
If <min-reserved-size> is less than <max-heap-size>, the code will
still assume that only <min-reserved-size> bytes are accessible and
will trap even if the runtime could allocate more..

So, `max` should always be <= `min`. Naming options is hard.
2019-04-23 14:57:07 +02:00
Frank Denis
3fde7349e1 Clarify that --min-reserved-size surprisingly sets the max memory 2019-04-23 03:14:19 +02:00
Frank Denis
05c86927f4 Remove temporary files 2019-04-23 02:02:19 +02:00
Frank Denis
fbe5d52a81 Spaces 2019-04-23 01:24:12 +02:00
Frank Denis
ff88392d8c Make the WASI backend configurable 2019-04-23 01:23:41 +02:00
Frank Denis
2277e7f4f0 Lucet requires --min-reserved-size or tests with large allocations will fail 2019-04-23 01:13:25 +02:00
Frank Denis
e38128998b lucet --dir=.:. works
Current WebAssembly runtimes status:

- wasmtime: no tests are failing.
- wasmer: 3 tests are failing:
  sodium_core, sodium_utils2, sodium_utils3
- lucet: 8 tests are failing:
  core3, pwhash_argon2i, pwhash_argon2id, secretstream, stream, stream2,
  pwhash_scrypt, pwhash_scrypt_ll
2019-04-23 00:47:43 +02:00
Frank Denis
7993e35227 Try wasmer and lucet as alternatives to wasmtime
However:
- wasmer seems to have issues with signals, causing some tests to fail
- lucet's --dir option doesn't seem to work with relative paths

These are temporary limitations, that are likely to be fixed soon.
2019-04-22 23:57:00 +02:00
Frank Denis
a7ebe2856f Turn on wasmtime optimizations 2019-04-09 15:48:23 +02:00
Frank Denis
9dbf03c115 Run the WASI checks using wasmtime 2019-04-08 21:45:08 +02:00