mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Docs: Update Gemini benchmark results
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async nums => {
|
||||
const { bisectLeft } = await import('https://esm.sh/d3-array')
|
||||
const tails = []
|
||||
for (const n of nums) tails[bisectLeft(tails, n)] = n
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async a => {
|
||||
const { bisectLeft: b } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const t = []
|
||||
for (const n of a) t[b(t, n)] = n
|
||||
return t.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async nums => {
|
||||
const { bisectLeft } = await import('https://esm.sh/d3-array')
|
||||
const tails = []
|
||||
for (const n of nums) tails[bisectLeft(tails, n)] = n
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async nums => {
|
||||
const { bisectLeft } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const tails = []
|
||||
for (const n of nums) tails[bisectLeft(tails, n)] = n
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async (nums) => {
|
||||
const { bisectLeft } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const tails = []
|
||||
for (const x of nums) tails[bisectLeft(tails, x)] = x
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
11
tests/3_lis/outputs_gemini/gemini-3-pro-preview TEMP_0.6.js
Normal file
11
tests/3_lis/outputs_gemini/gemini-3-pro-preview TEMP_0.6.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const findLISLength = async (nums) => {
|
||||
const { bisectLeft } = await import('https://esm.sh/d3-array')
|
||||
const tails = []
|
||||
|
||||
for (const x of nums) {
|
||||
tails[bisectLeft(tails, x)] = x
|
||||
}
|
||||
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,9 @@
|
||||
const findLISLength = async n => {
|
||||
const { bisectLeft: b } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const t = []
|
||||
for (const x of n) {
|
||||
t[b(t, x)] = x
|
||||
}
|
||||
return t.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async nums => {
|
||||
const { bisectLeft: search } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const tails = []
|
||||
for (const n of nums) tails[search(tails, n)] = n
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async n => {
|
||||
const { bisectLeft: b } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const t = []
|
||||
for (const x of n) t[b(t, x)] = x
|
||||
return t.length
|
||||
}
|
||||
export default findLISLength;
|
||||
11
tests/3_lis/outputs_gemini/gemini-3-pro-preview TEMP_0.js
Normal file
11
tests/3_lis/outputs_gemini/gemini-3-pro-preview TEMP_0.js
Normal file
@@ -0,0 +1,11 @@
|
||||
const findLISLength = async (nums) => {
|
||||
if (!nums?.length) return 0
|
||||
const { bisectLeft } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const tails = []
|
||||
for (const x of nums) {
|
||||
const i = bisectLeft(tails, x)
|
||||
i < tails.length ? tails[i] = x : tails.push(x)
|
||||
}
|
||||
return tails.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,7 @@
|
||||
const findLISLength = async a => {
|
||||
const { bisectLeft: b } = await import('https://cdn.jsdelivr.net/npm/d3-array@3/+esm')
|
||||
const t = []
|
||||
for (const n of a) t[b(t, n)] = n
|
||||
return t.length
|
||||
}
|
||||
export default findLISLength;
|
||||
@@ -0,0 +1,9 @@
|
||||
const findLISLength = async nums => {
|
||||
const { bisectLeft } = await import('https://esm.sh/d3-array')
|
||||
const sub = []
|
||||
for (const n of nums) {
|
||||
sub[bisectLeft(sub, n)] = n
|
||||
}
|
||||
return sub.length
|
||||
}
|
||||
export default findLISLength;
|
||||
Reference in New Issue
Block a user