diff --git a/bench/codspeed.js b/bench/codspeed.js index 188a05b4..b293c2f4 100644 --- a/bench/codspeed.js +++ b/bench/codspeed.js @@ -6,25 +6,16 @@ const bench = withCodSpeed(new Bench()); import { readFileSync } from 'node:fs'; import compile from '../compiler/wrap.js'; -const argv = process.argv.slice(); - const files = [ 'richards.js' ]; -const prefVariants = [ '', '-O0', '--no-coctc' ]; for (const file of files) { - for (const prefs of prefVariants) { - let run; - bench.add((file + ' ' + prefs).trim(), () => { - run(); - }, { - beforeEach: () => { - // fresh compile for each run - process.argv = (argv.join(' ') + ' ' + prefs).trim().split(' '); - globalThis.argvChanged(); - - run = compile(readFileSync('bench/' + file, 'utf8')).exports.main; - } - }); - } + let run; + bench.add(file, () => { + run(); + }, { + beforeEach: () => { + run = compile(readFileSync('bench/' + file, 'utf8')).exports.main; + } + }); } await bench.run(); diff --git a/package.json b/package.json index 8181764c..8cb12155 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "porffor", "description": "a basic experimental wip aot optimizing js -> wasm engine/compiler/runtime in js", - "version": "0.50.8", + "version": "0.50.9", "author": "CanadaHonk", "license": "MIT", "scripts": {}, diff --git a/runner/index.js b/runner/index.js index 60b8f699..73cc1074 100644 --- a/runner/index.js +++ b/runner/index.js @@ -1,6 +1,6 @@ #!/usr/bin/env node import fs from 'node:fs'; -globalThis.version = '0.50.8'; +globalThis.version = '0.50.9'; // deno compat if (typeof process === 'undefined' && typeof Deno !== 'undefined') {