mirror of
https://github.com/multipleof4/lynchmark.git
synced 2026-01-14 00:27:55 +00:00
Docs: Update benchmark results
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
const calculateDeterminant = async (matrix) => {
|
||||
const { det } = await import('https://cdn.jsdelivr.net/npm/mathjs@11.11.0/+esm');
|
||||
return det(matrix);
|
||||
};
|
||||
export default calculateDeterminant;
|
||||
@@ -0,0 +1,5 @@
|
||||
const calculateDeterminant = async (matrix) => {
|
||||
const { det } = await import('https://cdn.jsdelivr.net/npm/mathjs@11.11.0/+esm');
|
||||
return det(matrix);
|
||||
};
|
||||
export default calculateDeterminant;
|
||||
@@ -0,0 +1,5 @@
|
||||
const calculateDeterminant = async (matrix) => {
|
||||
const { det } = await import('https://cdn.jsdelivr.net/npm/mathjs@11.11.0/+esm');
|
||||
return det(matrix);
|
||||
};
|
||||
export default calculateDeterminant;
|
||||
@@ -0,0 +1,5 @@
|
||||
const calculateDeterminant = async (matrix) => {
|
||||
const { det } = await import('https://cdn.jsdelivr.net/npm/mathjs@13.0.0/es/index.js');
|
||||
return det(matrix);
|
||||
};
|
||||
export default calculateDeterminant;
|
||||
@@ -0,0 +1,5 @@
|
||||
const calculateDeterminant = async (matrix) => {
|
||||
const { det } = await import('https://cdn.jsdelivr.net/npm/mathjs@13.0.0/es/index.js');
|
||||
return det(matrix);
|
||||
};
|
||||
export default calculateDeterminant;
|
||||
5
tests/4_determinant/outputs/google_gemini-2.5-pro.js
Normal file
5
tests/4_determinant/outputs/google_gemini-2.5-pro.js
Normal file
@@ -0,0 +1,5 @@
|
||||
const calculateDeterminant = async (matrix) => {
|
||||
const { det } = await import('https://esm.sh/mathjs');
|
||||
return det(matrix);
|
||||
};
|
||||
export default calculateDeterminant;
|
||||
7
tests/4_determinant/outputs/openai_gpt-5-codex.js
Normal file
7
tests/4_determinant/outputs/openai_gpt-5-codex.js
Normal file
@@ -0,0 +1,7 @@
|
||||
const src='https://cdn.jsdelivr.net/npm/mathjs@11.11.0/+esm'
|
||||
export const calculateDeterminant=async m=>{
|
||||
if(!Array.isArray(m)||!m.length||m.some(r=>!Array.isArray(r)||r.length!==m.length))throw new TypeError('Matrix must be square')
|
||||
const{det}=await import(src)
|
||||
return det(m)
|
||||
}
|
||||
export default calculateDeterminant;
|
||||
Reference in New Issue
Block a user