Giter Site home page Giter Site logo

Comments (12)

SUPERCILEX avatar SUPERCILEX commented on June 4, 2024 1

As expected for windows right now since we're just forwarding to https://github.com/XAMPPRocky/remove_dir_all/blob/master/Cargo.toml. On that note, I noticed that the parallel feature is disabled by default. If you enable it here,

remove_dir_all = "0.8.2"
you should get about the same performance.

Can you try that and share benchmarks?

from fuc.

SUPERCILEX avatar SUPERCILEX commented on June 4, 2024

You can use --show-output with hyperfine to see the actual failure. My guess: have you install ftzz?

from fuc.

luceat-lux-vestra avatar luceat-lux-vestra commented on June 4, 2024

Thanks.

It seems hyperfine problem?
I can't pass command line options to commands.

I installed fizz and when I run this command on terminal

hyperfine --warmup 3 -N --show-output --prepare "ftzz g -n 100 -b 100 ""D:/tmp/ftzz""" "rmdir /S /Q D:/tmp/"
got this error.

Benchmark 1: rmdir /S /Q D:/tmp/
About 100 files will be generated in approximately 100 directories distributed across a tree of maximum depth 5 where each directory contains approximately 3 other directories. Each file will contain approximately 1 byte of random data.
Created 32 files (29 B) across 214 directories.
rmdir: failed to remove '/S': The system cannot find the file specified.
rmdir: failed to remove '/Q': The system cannot find the file specified.
rmdir: failed to remove 'D:/tmp/': The directory is not empty.
Error: Command terminated with non-zero exit code: 1. Use the '-i'/'--ignore-failure' option if you want to ignore this. Alternatively, use the '--show-output' option to debug what went wrong.

from fuc.

luceat-lux-vestra avatar luceat-lux-vestra commented on June 4, 2024

Problem solved.
-N made options for command not usable.

Shell script converted to batch script on windows and it's working.
(It's from remote windows, line breaks not applied here.)

@echo off
for %%G in (0,1G) do (
 for %%F in (10,10_000,100_000,1M) do (
    hyperfine --warmup 3 ^
      --export-markdown "./benches/remove_%%F_files_%%G_bytes.md" ^
      --export-json "./benches/remove_%%F_files_%%G_bytes.json" ^
      --prepare "ftzz g -n %%F -b %%G D:/tmp/ftzz" ^
        "rmdir /S /Q ""D:/tmp""" ^
        "D:/Repositories/fuc/target/release/rm_stdlib D:/tmp/ftzz" ^
        "D:/Repositories/fuc//target/release/rm_rayon D:/tmp/ftzz" ^
        "D:/Repositories/fuc//target/release/rm_remove_dir_all D:/tmp/ftzz" ^
        "D:/Repositories/fuc//target/release/rmz D:/tmp/ftzz"
    )

  hyperfine --warmup 3 -N ^
    --export-markdown "benches/remove_100_000_files_%%G_bytes_0_depth.md" ^
    --export-json "benches/remove_100_000_files_%%G_bytes_0_depth.json" ^
    --prepare "ftzz g -n 100_000 -b %%G -d 0 D:/tmp/ftzz" ^
      "rmdir /S /Q ""D:/tmp""" ^
      "D:/Repositories/fuc/target/release/rm_stdlib D:/tmp/ftzz" ^
      "D:/Repositories/fuc/target/release/rm_rayon D:/tmp/ftzz" ^
      "D:/Repositories/fuc/target/release/rm_remove_dir_all D:/tmp/ftzz" ^
      "D:/Repositories/fuc/target/release/rmz D:/tmp/ftzz"

  hyperfine --warmup 3 -N ^
    --export-markdown "benches/remove_100_000_files_%%G_bytes_5_files_per_dir.md" ^
    --export-json "benches/remove_100_000_files_%%G_bytes_5_files_per_dir.json" ^
    --prepare "ftzz g -n 100_000 -b %%G -r 5 D:/tmp/ftzz" ^
      "rmdir /S /Q ""D:/tmp""" ^
      "D:/Repositories/fuc/target/release/rm_stdlib ""D:/tmp/ftzz""" ^
      "D:/Repositories/fuc/target/release/rm_rayon ""D:/tmp/ftzz""" ^
      "D:/Repositories/fuc/target/release/rm_remove_dir_all ""D:/tmp/ftzz""" ^
      "D:/Repositories/fuc/target/release/rmz ""D:/tmp/ftzz"""
)

from fuc.

luceat-lux-vestra avatar luceat-lux-vestra commented on June 4, 2024

rm_rayon is fastest on windows 11(tested on HDD).

from fuc.

luceat-lux-vestra avatar luceat-lux-vestra commented on June 4, 2024

@SUPERCILEX not relevant, but do you know some windows internals?

_Hm... I thought wrongly. _

I hope to get some advice on this.

Thanks.

from fuc.

SUPERCILEX avatar SUPERCILEX commented on June 4, 2024

Sadly no, I don't know much of anything about Windows internals.

from fuc.

luceat-lux-vestra avatar luceat-lux-vestra commented on June 4, 2024

benches.zip

I can't wait to finish remove benchmark running on HDD.
But I guess almost last phase.

need to adjust values or run benches on SSD...
HDD takes too much time.

from fuc.

SUPERCILEX avatar SUPERCILEX commented on June 4, 2024

Thanks! So that's with the parallel feature enabled? Seems like a win for the large benchmarks.

from fuc.

luceat-lux-vestra avatar luceat-lux-vestra commented on June 4, 2024

Yes, I enabled parallel feature for remove_dir_all.

from fuc.

SUPERCILEX avatar SUPERCILEX commented on June 4, 2024

Sweet! I just pushed 844b20b

from fuc.

luceat-lux-vestra avatar luceat-lux-vestra commented on June 4, 2024

benches (2).zip

Added copy benchmarks, just stdlib, rayon, cpz.
I'll try this with robocopy later.

from fuc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.