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 19 9 485 22 21 25.16 1.16
bin-true no-host 664 536 2,402 808 807 3.61 1.22
configure.cpython no-host 15,276 15,266 29,624 15,514 15,498 1.94 1.02
configure.ocaml no-host 3,880 3,737 4,769 3,873 3,901 1.23 1.00
configure.tcc no-host 47 41 212 49 49 4.50 1.04
configure.util-linux no-host 14,203 14,976 32,435 14,528 14,428 2.28 1.02
configure.yash no-host 1,862 1,778 2,568 1,876 1,884 1.38 1.01
hello-world no-host 1 1 59 3 3 40.82 1.97

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,507 1,083 24,401 3,189 3,107 9.73 1.27
bin-true no-host 106,398 66,501 810,479 127,168 127,105 7.62 1.20
configure.cpython no-host 1,998,809 2,025,972 6,098,763 2,010,780 2,003,415 3.05 1.01
configure.ocaml no-host 373,362 353,411 615,223 377,091 376,608 1.65 1.01
configure.tcc no-host 6,088 4,997 24,008 6,521 6,462 3.94 1.07
configure.util-linux no-host 1,911,295 2,070,941 5,320,989 1,817,513 1,801,758 2.78 0.95
configure.yash no-host 233,337 222,196 369,496 235,305 235,350 1.58 1.01
hello-world no-host 151 75 3,964 346 340 26.25 2.29

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.5 3.4 22.7 8.9 8.7 5.10 2.00
bin-true no-host 3.0 1.4 18.5 8.0 7.7 6.15 2.65
configure.cpython no-host 29.3 29.0 29.0 29.2 29.1 0.99 1.00
configure.ocaml no-host 22.6 22.6 22.6 22.6 22.6 1.00 1.00
configure.tcc no-host 19.7 19.5 19.5 19.7 19.6 0.99 1.00
configure.util-linux no-host 30.2 30.3 30.2 30.2 30.3 1.00 1.00
configure.yash no-host 26.2 26.4 26.5 26.4 26.2 1.01 1.01
hello-world no-host 2.9 1.3 18.3 6.4 5.9 6.34 2.23

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 6.4 3,805 3,805 0 700 1,870 1,235 2 0 50,000 0
bin-true no-host 808 1 2 2.6 8.0 153,772 12,413 2,901 8,752 76,337 68,683 3,008 3 50,000 0
configure.cpython no-host 15,514 1 69 15.3 29.2 1,773,763 49,828 28,526 91,505 881,465 800,793 25,736 60 50,000 0
configure.util-linux no-host 14,528 3 68 21.6 30.2 2,704,674 53,757 65,705 114,372 1,293,957 1,296,345 32,241 41 131,410 1
configure.ocaml no-host 3,873 1 2 2.6 22.6 149,788 11,154 5,221 7,733 70,844 71,211 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.7 30,573 30,573 0 1,542 14,635 14,396 271 0 50,000 0
configure.yash no-host 1,876 1 2 2.6 26.4 139,684 8,041 6,700 6,395 68,253 65,036 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 8.9 116,321 64,419 42,627 4,544 54,454 57,323 277 3 85,254 1
hello-world no-host 3 0 0 0.3 5.9 3,804 3,804 0 701 1,870 1,233 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.7 153,771 12,332 2,896 8,753 76,337 68,681 3,008 3 50,000 0
configure.cpython no-host 15,498 1 69 15.3 29.1 1,773,762 49,823 28,521 91,506 881,465 800,791 25,736 60 50,000 0
configure.util-linux no-host 14,428 3 69 21.6 30.3 2,704,674 53,734 65,700 114,374 1,293,957 1,296,343 32,241 41 131,400 1
configure.ocaml no-host 3,901 1 2 2.6 22.6 149,788 11,149 5,216 7,735 70,844 71,209 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.6 30,573 30,573 0 1,544 14,635 14,394 271 0 50,000 0
configure.yash no-host 1,884 1 2 2.6 26.2 139,684 8,030 6,689 6,397 68,253 65,034 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.7 116,320 64,414 42,622 4,545 54,454 57,321 277 3 85,244 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 19 10 10 4.5 bash
15 no-host abuild-print-help 9 4 6 3.4 dash
23 no-host abuild-print-help 485 424 64 22.7 osh-cpython
31 no-host abuild-print-help 22 11 12 8.9 osh-native
39 no-host abuild-print-help 21 12 10 8.7 osh-native-souffle
1 no-host bin-true 664 307 390 3.0 bash
9 no-host bin-true 536 274 274 1.4 dash
17 no-host bin-true 2,402 805 1,863 18.5 osh-cpython
25 no-host bin-true 808 298 526 8.0 osh-native
33 no-host bin-true 807 306 519 7.7 osh-native-souffle
2 no-host configure.cpython 15,276 6,839 8,873 29.3 bash
10 no-host configure.cpython 15,266 6,944 8,779 29.0 dash
18 no-host configure.cpython 29,624 14,717 16,788 29.0 osh-cpython
26 no-host configure.cpython 15,514 6,747 9,066 29.2 osh-native
34 no-host configure.cpython 15,498 6,734 8,940 29.1 osh-native-souffle
4 no-host configure.ocaml 3,880 1,389 1,522 22.6 bash
12 no-host configure.ocaml 3,737 1,309 1,449 22.6 dash
20 no-host configure.ocaml 4,769 1,930 2,067 22.6 osh-cpython
28 no-host configure.ocaml 3,873 1,336 1,577 22.6 osh-native
36 no-host configure.ocaml 3,901 1,382 1,559 22.6 osh-native-souffle
5 no-host configure.tcc 47 21 27 19.7 bash
13 no-host configure.tcc 41 21 20 19.5 dash
21 no-host configure.tcc 212 138 79 19.5 osh-cpython
29 no-host configure.tcc 49 23 27 19.7 osh-native
37 no-host configure.tcc 49 16 33 19.6 osh-native-souffle
3 no-host configure.util-linux 14,203 5,974 8,742 30.2 bash
11 no-host configure.util-linux 14,976 6,100 9,417 30.3 dash
19 no-host configure.util-linux 32,435 18,263 15,303 30.2 osh-cpython
27 no-host configure.util-linux 14,528 5,715 9,050 30.2 osh-native
35 no-host configure.util-linux 14,428 5,761 8,899 30.3 osh-native-souffle
6 no-host configure.yash 1,862 933 937 26.2 bash
14 no-host configure.yash 1,778 919 864 26.4 dash
22 no-host configure.yash 2,568 1,418 1,196 26.5 osh-cpython
30 no-host configure.yash 1,876 928 953 26.4 osh-native
38 no-host configure.yash 1,884 949 942 26.2 osh-native-souffle
0 no-host hello-world 1 0 1 2.9 bash
8 no-host hello-world 1 1 0 1.3 dash
16 no-host hello-world 59 40 19 18.3 osh-cpython
24 no-host hello-world 3 1 2 6.4 osh-native
32 no-host hello-world 3 1 2 5.9 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,507 0 0 0 16 0 41 3 bash
15 no-host abuild-print-help 1,083 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 24,401 0 0 0 8 0 45 3 osh-cpython
31 no-host abuild-print-help 3,189 0 0 0 16 0 40 0 osh-native
39 no-host abuild-print-help 3,107 0 0 0 16 0 39 0 osh-native-souffle
1 no-host bin-true 106,398 0 0 0 8 0 1,982 144 bash
9 no-host bin-true 66,501 0 0 0 8 0 1,980 73 dash
17 no-host bin-true 810,479 0 0 0 8 0 1,986 326 osh-cpython
25 no-host bin-true 127,168 0 0 0 16 0 1,975 214 osh-native
33 no-host bin-true 127,105 0 0 0 16 0 1,976 144 osh-native-souffle
2 no-host configure.cpython 1,998,809 0 0 0 32,928 0 14,246 1,059 bash
10 no-host configure.cpython 2,025,972 0 0 0 32,992 0 14,330 1,092 dash
18 no-host configure.cpython 6,098,763 1 0 0 27,512 0 13,050 957 osh-cpython
26 no-host configure.cpython 2,010,780 0 0 0 27,520 0 13,030 966 osh-native
34 no-host configure.cpython 2,003,415 0 0 0 27,520 0 13,047 964 osh-native-souffle
4 no-host configure.ocaml 373,362 0 0 0 5,120 0 1,958 182 bash
12 no-host configure.ocaml 353,411 0 0 0 5,112 0 1,931 160 dash
20 no-host configure.ocaml 615,223 0 0 0 5,112 0 1,846 192 osh-cpython
28 no-host configure.ocaml 377,091 0 0 0 5,120 0 1,919 199 osh-native
36 no-host configure.ocaml 376,608 0 0 0 5,120 0 1,923 189 osh-native-souffle
5 no-host configure.tcc 6,088 0 0 0 104 0 49 2 bash
13 no-host configure.tcc 4,997 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,008 0 0 0 96 0 53 3 osh-cpython
29 no-host configure.tcc 6,521 0 0 0 104 0 47 2 osh-native
37 no-host configure.tcc 6,462 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 1,911,295 0 0 0 42,400 0 18,373 1,177 bash
11 no-host configure.util-linux 2,070,941 2 0 0 42,584 0 17,358 1,290 dash
19 no-host configure.util-linux 5,320,989 9 0 0 39,144 0 17,020 1,254 osh-cpython
27 no-host configure.util-linux 1,817,513 0 0 0 39,128 0 17,018 1,074 osh-native
35 no-host configure.util-linux 1,801,758 0 0 0 39,136 0 17,006 1,134 osh-native-souffle
6 no-host configure.yash 233,337 0 0 0 4,120 0 867 85 bash
14 no-host configure.yash 222,196 0 0 0 3,720 0 870 80 dash
22 no-host configure.yash 369,496 0 0 0 3,728 0 855 86 osh-cpython
30 no-host configure.yash 235,305 0 0 0 3,736 0 847 94 osh-native
38 no-host configure.yash 235,350 0 0 0 3,736 0 851 94 osh-native-souffle
0 no-host hello-world 151 0 0 0 8 0 1 0 bash
8 no-host hello-world 75 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,964 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 346 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 340 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-d6c6d82d
dash dash-0ebcf347
osh-cpython osh-e99239d8
osh-native osh-decb2b3c
osh-native-souffle osh-b3cab492
host label host id
no-host no-host-e4839999