zlacker

[parent] [thread] 2 comments
1. nateb2+(OP)[view] [source] 2023-07-18 14:27:08
This is true of a lot of things.
replies(2): >>cpeter+Ln >>chasil+Ey1
2. cpeter+Ln[view] [source] 2023-07-18 15:45:20
>>nateb2+(OP)
For example, Mozilla compiles Firefox’s official macOS and Windows builds on Linux because cross-compilation is faster and cheaper than compiling on macOS or Windows in the cloud.
3. chasil+Ey1[view] [source] 2023-07-18 20:50:07
>>nateb2+(OP)
Windows does not fork processes as fast as Linux, although this is improved somewhat in the in the Windows Subsystem for Linux.

Here is a somewhat foolish test with a shell script, that forks "/bin/true" 10 million times.

  C:\>busybox sh
  ~ $ echo 'x=10000000; while [ $x -gt 0 ]; do true; x=$((x-1)); done' > timetest
  ~ $ time sh timetest
  real    0m 46.86s
  user    0m 46.76s
  sys     0m 0.04s
Here is the same test with Debian's dash shell, one of the fastest:

  $ cat timetest
  x=10000000; while [ $x -gt 0 ]; do true; x=$((x-1)); done
  $ time dash timetest
  0m33.79s real     0m33.50s user     0m0.05s system
Not a great test, but there is quite a difference there.
[go to top]