Skip to content

Commit 806aa3a

Browse files
committed
fix: es6 syntax to benchmark the performance
1 parent d7f0a36 commit 806aa3a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/performance.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
4242
# Create benchmark script
4343
cat > benchmark.js << 'EOF'
44-
const { execSync } = require('child_process');
45-
const fs = require('fs');
44+
import { execSync } from 'child_process';
45+
import fs from 'fs';
4646
4747
const iterations = 10;
4848
const results = [];
@@ -105,8 +105,8 @@ jobs:
105105
106106
# Create memory profiling script
107107
cat > memory-profile.js << 'EOF'
108-
const { spawn } = require('child_process');
109-
const fs = require('fs');
108+
import { spawn } from 'child_process';
109+
import fs from 'fs';
110110
111111
function measureMemory(command, args = []) {
112112
return new Promise((resolve, reject) => {

0 commit comments

Comments
 (0)