feat: add JavaScript benchmark runner with fib(30) test and node integration
Add a new JavaScript benchmark file `benchmark/fib.js` that implements a recursive Fibonacci function and measures execution time using `process.hrtime()`. Register the JavaScript language entry in `benchmark/run_all` with the `node` interpreter and `.js` extension, enabling JS benchmarks to be included in the full benchmark suite alongside existing languages.
This commit is contained in:
+2
-1
@@ -20,7 +20,8 @@ LANGUAGES = [
|
||||
("wren", "../build/Release/wren", ".wren"),
|
||||
("lua", "lua", ".lua"),
|
||||
("python", "python", ".py"),
|
||||
("ruby", "ruby", ".rb")
|
||||
("ruby", "ruby", ".rb"),
|
||||
("js", "node", ".js")
|
||||
]
|
||||
|
||||
# How many times to run a given benchmark. Should be an odd number to get the
|
||||
|
||||
Reference in New Issue
Block a user