@@ -224,15 +224,15 @@ function benchZipSyncScenario(
224224
225225// the benchmarks are skipped by default because they require external tools (tar, zip) to be installed
226226describe ( `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}
482482function 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