Skip to content

Commit 2636c4a

Browse files
committed
fixup benchmark
1 parent e6f4877 commit 2636c4a

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

apps/zipsync/src/benchmark.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ function benchZipSyncScenario(
224224

225225
// the benchmarks are skipped by default because they require external tools (tar, zip) to be installed
226226
describe(`archive benchmarks (iterations=${ITERATIONS})`, () => {
227-
it('gtar', () => {
227+
it('tar', () => {
228228
if (!isTarAvailable()) {
229229
console.log('Skipping tar test because tar is not available');
230230
return;
231231
}
232232
if (!tempDir) throw new Error('Temp directory is not set up.');
233-
bench('gtar', {
234-
pack: ({ archive, demoDir }) => execSync(`gtar -cf "${archive}" -C "${demoDir}" .`),
235-
unpack: ({ archive, unpackDir }) => execSync(`gtar -xf "${archive}" -C "${unpackDir}"`),
233+
bench('tar', {
234+
pack: ({ archive, demoDir }) => execSync(`tar -cf "${archive}" -C "${demoDir}" .`),
235+
unpack: ({ archive, unpackDir }) => execSync(`tar -xf "${archive}" -C "${unpackDir}"`),
236236
archive: path.join(tempDir, 'archive.tar'),
237237
unpackDir: path.join(tempDir, 'unpacked-tar'),
238238
populateUnpackDir: 'full',
@@ -481,7 +481,7 @@ function isZipAvailable(): boolean {
481481
}
482482
function isTarAvailable(): boolean {
483483
try {
484-
const checkTar = process.platform === 'win32' ? 'where gtar' : 'command -v gtar';
484+
const checkTar = process.platform === 'win32' ? 'where tar' : 'command -v tar';
485485
execSync(checkTar, { stdio: 'ignore' });
486486
return true;
487487
} catch {

0 commit comments

Comments
 (0)