OSH Runtime Performance

Source code: benchmarks/osh-runtime.sh

Raw files

Elapsed Time by Shell (milliseconds)

Some benchmarks call many external tools, while some exercise the shell interpreter itself.

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 16 9 528 22 20 33.47 1.39
bin-true no-host 610 436 2,480 795 807 4.06 1.30
configure.cpython no-host 13,598 13,814 29,057 14,430 14,510 2.14 1.06
configure.ocaml no-host 3,666 3,605 4,585 3,700 3,672 1.25 1.01
configure.tcc no-host 46 42 220 49 49 4.82 1.07
configure.util-linux no-host 12,528 13,136 31,810 13,556 13,600 2.54 1.08
configure.yash no-host 1,675 1,659 2,387 1,687 1,692 1.43 1.01
hello-world no-host 1 1 64 3 3 50.97 2.38

Minor Page Faults

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 2,409 1,165 24,860 3,466 3,342 10.32 1.44
bin-true no-host 100,967 49,328 839,048 135,301 136,264 8.31 1.34
configure.cpython no-host 1,623,562 1,646,660 5,954,469 1,808,177 1,780,236 3.67 1.11
configure.ocaml no-host 298,286 280,855 556,380 317,850 315,302 1.87 1.07
configure.tcc no-host 5,203 4,204 23,777 5,904 5,838 4.57 1.13
configure.util-linux no-host 1,538,012 1,699,391 4,962,884 1,718,819 1,710,109 3.23 1.12
configure.yash no-host 173,771 159,542 315,247 178,995 179,281 1.81 1.03
hello-world no-host 154 83 3,880 386 377 25.19 2.51

Memory Usage (Max Resident Set Size in MB)

Memory usage is measured in MB (powers of 10), not MiB (powers of 2).

workload host name bash dash osh-cpython osh-native osh-native-souffle py bash ratio native bash ratio
abuild-print-help no-host 4.8 3.8 22.7 10.0 9.3 4.67 2.05
bin-true no-host 3.3 1.4 18.3 8.9 8.4 5.59 2.72
configure.cpython no-host 34.4 34.4 34.8 34.5 34.7 1.01 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.5 1.00 1.00
configure.tcc no-host 26.3 26.3 26.2 26.3 26.0 1.00 1.00
configure.util-linux no-host 39.8 39.7 39.5 39.9 39.6 0.99 1.00
configure.yash no-host 33.4 33.4 33.4 33.1 33.4 1.00 0.99
hello-world no-host 3.3 1.4 18.1 7.1 6.4 5.51 2.16

GC Stats

workload host name elapsed ms max gc millis total gc millis allocated MB max rss MB num allocated num live max survived num in heap num in pool 1 num in pool 2 num gc points num gc done gc threshold num growths
hello-world no-host 3 0 0 0.3 7.1 3,826 3,826 0 704 1,881 1,241 2 0 50,000 0
bin-true no-host 795 1 2 2.6 8.9 156,798 15,428 2,915 8,761 77,348 70,689 3,008 3 50,000 0
configure.cpython no-host 14,430 1 64 15.2 34.5 1,782,989 46,101 25,356 91,622 885,112 806,255 25,789 62 50,000 0
configure.util-linux no-host 13,556 3 60 21.4 39.9 2,707,122 126,354 66,586 113,463 1,294,568 1,299,091 32,539 41 133,172 1
configure.ocaml no-host 3,700 1 2 2.7 28.6 149,873 12,476 6,519 7,819 70,840 71,214 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.3 30,628 30,628 0 1,582 14,646 14,400 271 0 50,000 0
configure.yash no-host 1,687 1 2 2.6 33.1 140,017 8,080 6,714 6,526 68,348 65,143 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 10.0 116,368 64,438 42,639 4,562 54,472 57,334 277 3 85,278 1
hello-world no-host 3 0 0 0.3 6.4 3,825 3,825 0 705 1,881 1,239 2 0 50,000 0
bin-true no-host 807 1 2 2.6 8.4 156,797 15,423 2,910 8,762 77,348 70,687 3,008 3 50,000 0
configure.cpython no-host 14,510 1 64 15.2 34.7 1,782,988 46,087 25,352 91,623 885,112 806,253 25,789 62 50,000 0
configure.util-linux no-host 13,600 3 60 21.4 39.6 2,707,122 126,347 66,579 113,465 1,294,568 1,299,089 32,539 41 133,158 1
configure.ocaml no-host 3,672 1 2 2.7 28.5 149,873 12,470 6,513 7,821 70,840 71,212 1,693 3 50,000 0
configure.tcc no-host 49 0 0 1.3 26.0 30,628 30,628 0 1,584 14,646 14,398 271 0 50,000 0
configure.yash no-host 1,692 1 2 2.6 33.4 140,017 8,069 6,703 6,528 68,348 65,141 2,095 3 50,000 0
abuild-print-help no-host 20 1 2 2.8 9.3 116,367 64,433 42,634 4,563 54,472 57,332 277 3 85,268 1

rusage Details

task id host name workload elapsed ms user ms sys ms max rss MB shell label
7 no-host abuild-print-help 16 7 9 4.8 bash
15 no-host abuild-print-help 9 2 7 3.8 dash
23 no-host abuild-print-help 528 456 76 22.7 osh-cpython
31 no-host abuild-print-help 22 10 12 10.0 osh-native
39 no-host abuild-print-help 20 9 12 9.3 osh-native-souffle
1 no-host bin-true 610 308 341 3.3 bash
9 no-host bin-true 436 269 170 1.4 dash
17 no-host bin-true 2,480 868 1,890 18.3 osh-cpython
25 no-host bin-true 795 310 500 8.9 osh-native
33 no-host bin-true 807 283 538 8.4 osh-native-souffle
2 no-host configure.cpython 13,598 7,393 6,574 34.4 bash
10 no-host configure.cpython 13,814 7,537 6,671 34.4 dash
18 no-host configure.cpython 29,057 16,062 14,946 34.8 osh-cpython
26 no-host configure.cpython 14,430 7,222 7,503 34.5 osh-native
34 no-host configure.cpython 14,510 7,236 7,366 34.7 osh-native-souffle
4 no-host configure.ocaml 3,666 1,455 1,249 28.7 bash
12 no-host configure.ocaml 3,605 1,463 1,165 28.7 dash
20 no-host configure.ocaml 4,585 2,041 1,765 28.7 osh-cpython
28 no-host configure.ocaml 3,700 1,444 1,300 28.6 osh-native
36 no-host configure.ocaml 3,672 1,436 1,276 28.5 osh-native-souffle
5 no-host configure.tcc 46 30 17 26.3 bash
13 no-host configure.tcc 42 23 19 26.3 dash
21 no-host configure.tcc 220 149 75 26.2 osh-cpython
29 no-host configure.tcc 49 24 25 26.3 osh-native
37 no-host configure.tcc 49 26 24 26.0 osh-native-souffle
3 no-host configure.util-linux 12,528 6,573 6,426 39.8 bash
11 no-host configure.util-linux 13,136 6,367 7,251 39.7 dash
19 no-host configure.util-linux 31,810 19,987 12,885 39.5 osh-cpython
27 no-host configure.util-linux 13,556 6,256 7,535 39.9 osh-native
35 no-host configure.util-linux 13,600 6,201 7,471 39.6 osh-native-souffle
6 no-host configure.yash 1,675 937 747 33.4 bash
14 no-host configure.yash 1,659 959 702 33.4 dash
22 no-host configure.yash 2,387 1,425 1,004 33.4 osh-cpython
30 no-host configure.yash 1,687 950 740 33.1 osh-native
38 no-host configure.yash 1,692 915 780 33.4 osh-native-souffle
0 no-host hello-world 1 0 1 3.3 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 64 44 20 18.1 osh-cpython
24 no-host hello-world 3 1 2 7.1 osh-native
32 no-host hello-world 3 0 3 6.4 osh-native-souffle

More Details

task id host name workload minor faults major faults swaps in block out block signals voluntary ctx involuntary ctx shell label
7 no-host abuild-print-help 2,409 0 0 0 8 0 41 2 bash
15 no-host abuild-print-help 1,165 0 0 0 8 0 40 1 dash
23 no-host abuild-print-help 24,860 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,466 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,342 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 100,967 0 0 0 8 0 1,987 66 bash
9 no-host bin-true 49,328 0 0 0 8 0 2,960 64 dash
17 no-host bin-true 839,048 0 0 0 8 0 1,966 144 osh-cpython
25 no-host bin-true 135,301 0 0 0 16 0 1,957 105 osh-native
33 no-host bin-true 136,264 0 0 0 16 0 1,953 107 osh-native-souffle
2 no-host configure.cpython 1,623,562 0 0 0 25,272 0 14,034 1,039 bash
10 no-host configure.cpython 1,646,660 0 0 0 25,272 0 14,081 1,055 dash
18 no-host configure.cpython 5,954,469 0 0 0 25,272 0 12,875 930 osh-cpython
26 no-host configure.cpython 1,808,177 0 0 0 25,280 0 12,891 1,012 osh-native
34 no-host configure.cpython 1,780,236 0 0 0 25,280 0 12,829 1,079 osh-native-souffle
4 no-host configure.ocaml 298,286 0 0 0 4,432 0 2,015 220 bash
12 no-host configure.ocaml 280,855 0 0 0 4,432 0 2,101 217 dash
20 no-host configure.ocaml 556,380 0 0 0 4,432 0 1,923 191 osh-cpython
28 no-host configure.ocaml 317,850 0 0 0 4,440 0 2,005 201 osh-native
36 no-host configure.ocaml 315,302 0 0 0 4,440 0 2,003 204 osh-native-souffle
5 no-host configure.tcc 5,203 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,204 0 0 0 88 0 52 2 dash
21 no-host configure.tcc 23,777 0 0 0 88 0 53 3 osh-cpython
29 no-host configure.tcc 5,904 0 0 0 96 0 47 1 osh-native
37 no-host configure.tcc 5,838 0 0 0 96 0 47 3 osh-native-souffle
3 no-host configure.util-linux 1,538,012 0 0 0 35,944 0 18,882 1,065 bash
11 no-host configure.util-linux 1,699,391 0 0 0 35,936 0 17,032 1,231 dash
19 no-host configure.util-linux 4,962,884 3 0 0 35,944 0 17,529 849 osh-cpython
27 no-host configure.util-linux 1,718,819 0 0 0 35,944 0 17,409 1,136 osh-native
35 no-host configure.util-linux 1,710,109 1 0 0 35,944 0 17,485 1,117 osh-native-souffle
6 no-host configure.yash 173,771 0 0 0 3,616 0 875 109 bash
14 no-host configure.yash 159,542 0 0 0 3,624 0 995 97 dash
22 no-host configure.yash 315,247 0 0 0 3,616 0 858 95 osh-cpython
30 no-host configure.yash 178,995 0 0 0 3,624 0 852 100 osh-native
38 no-host configure.yash 179,281 0 0 0 3,632 0 859 112 osh-native-souffle
0 no-host hello-world 154 0 0 0 8 0 1 0 bash
8 no-host hello-world 83 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,880 0 0 0 8 0 7 2 osh-cpython
24 no-host hello-world 386 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 377 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a04d1876
dash dash-cea41b3e
osh-cpython osh-bf2875fd
osh-native osh-9de45f1a
osh-native-souffle osh-44cbed18
host label host id
no-host no-host-2411472