mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Docs: Update benchmark for openai/gpt-5.2 EFF:xhigh
This commit is contained in:
20
tests/3_lis/outputs/openai_gpt-5.2 EFF_xhigh.js
Normal file
20
tests/3_lis/outputs/openai_gpt-5.2 EFF_xhigh.js
Normal file
@@ -0,0 +1,20 @@
|
||||
const d3ArrayUrl = 'https://cdn.jsdelivr.net/npm/d3-array@3/+esm'
|
||||
const err = 'Expected an array of numbers'
|
||||
let d3Array
|
||||
|
||||
async function findLISLength(nums) {
|
||||
if (!Array.isArray(nums)) throw TypeError(err)
|
||||
|
||||
d3Array ||= import(d3ArrayUrl)
|
||||
let { bisectLeft } = await d3Array
|
||||
|
||||
let tails = []
|
||||
for (let x of nums) {
|
||||
if (typeof x != 'number' || x != x) throw TypeError(err)
|
||||
tails[bisectLeft(tails, x)] = x
|
||||
}
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
// Generation time: 227.924s
|
||||
// Result: PASS
|
||||
Reference in New Issue
Block a user