mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-03-17 03:11:01 +00:00
Docs: Update benchmark for openai/gpt-5.3-codex
This commit is contained in:
@@ -1,4 +1,13 @@
|
||||
|
||||
async function findLISLength(arr) {
|
||||
if (!Array.isArray(arr)) throw new TypeError("Expected an array of numbers");
|
||||
const { bisectLeft } = await import("https://cdn.jsdelivr.net/npm/d3-array@3/+esm");
|
||||
const tails = [];
|
||||
for (const n of arr) {
|
||||
if (typeof n !== "number" || Number.isNaN(n)) throw new TypeError("Array must contain only valid numbers");
|
||||
tails[bisectLeft(tails, n)] = n;
|
||||
}
|
||||
return tails.length;
|
||||
}
|
||||
export default findLISLength;
|
||||
// Generation time: 0.821s
|
||||
// Result: FAIL
|
||||
// Generation time: 7.363s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user