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 540 22 21 34.53 1.38
bin-true no-host 609 433 2,419 794 798 3.97 1.30
configure.cpython no-host 13,574 13,626 28,994 14,724 14,684 2.14 1.08
configure.ocaml no-host 3,622 3,558 4,631 3,697 3,747 1.28 1.02
configure.tcc no-host 45 41 224 50 48 4.95 1.09
configure.util-linux no-host 12,321 13,144 32,035 13,722 13,778 2.60 1.11
configure.yash no-host 1,666 1,613 2,444 1,741 1,724 1.47 1.05
hello-world no-host 1 1 59 3 3 50.10 2.45

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,431 1,154 24,730 3,436 3,366 10.17 1.41
bin-true no-host 98,930 49,350 836,655 135,215 135,267 8.46 1.37
configure.cpython no-host 1,622,927 1,643,903 5,995,840 1,803,789 1,772,565 3.69 1.11
configure.ocaml no-host 298,907 280,582 558,104 316,208 316,503 1.87 1.06
configure.tcc no-host 5,227 4,219 23,921 5,922 5,847 4.58 1.13
configure.util-linux no-host 1,535,796 1,699,614 4,993,436 1,726,714 1,717,874 3.25 1.12
configure.yash no-host 173,565 159,545 316,354 179,687 178,938 1.82 1.04
hello-world no-host 153 86 3,883 384 378 25.38 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 5.0 4.2 22.9 9.8 9.3 4.60 1.97
bin-true no-host 3.1 1.6 18.2 8.7 8.4 5.78 2.75
configure.cpython no-host 34.5 34.4 34.5 34.5 34.4 1.00 1.00
configure.ocaml no-host 28.7 28.7 28.7 28.6 28.7 1.00 1.00
configure.tcc no-host 26.0 26.2 26.3 26.1 26.2 1.01 1.00
configure.util-linux no-host 39.6 39.5 39.6 39.6 39.6 1.00 1.00
configure.yash no-host 33.4 33.4 33.5 33.4 33.4 1.00 1.00
hello-world no-host 3.1 1.6 18.1 6.9 6.6 5.74 2.21

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.9 3,827 3,827 0 704 1,881 1,242 2 0 50,000 0
bin-true no-host 794 1 2 2.6 8.7 156,799 15,429 2,916 8,761 77,348 70,690 3,008 3 50,000 0
configure.cpython no-host 14,724 1 66 15.2 34.5 1,782,990 46,102 25,357 91,622 885,112 806,256 25,789 62 50,000 0
configure.util-linux no-host 13,722 3 60 21.4 39.6 2,707,123 126,355 66,587 113,463 1,294,568 1,299,092 32,539 41 133,174 1
configure.ocaml no-host 3,697 1 2 2.7 28.6 149,874 12,477 6,520 7,819 70,840 71,215 1,693 3 50,000 0
configure.tcc no-host 50 0 0 1.3 26.1 30,629 30,629 0 1,582 14,646 14,401 271 0 50,000 0
configure.yash no-host 1,741 1 2 2.6 33.4 140,018 8,081 6,715 6,526 68,348 65,144 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.8 116,369 64,439 42,640 4,562 54,472 57,335 277 3 85,280 1
hello-world no-host 3 0 0 0.3 6.6 3,826 3,826 0 705 1,881 1,240 2 0 50,000 0
bin-true no-host 798 1 2 2.6 8.4 156,798 15,424 2,911 8,762 77,348 70,688 3,008 3 50,000 0
configure.cpython no-host 14,684 1 64 15.2 34.4 1,782,989 46,088 25,353 91,623 885,112 806,254 25,789 62 50,000 0
configure.util-linux no-host 13,778 3 61 21.4 39.6 2,707,123 126,348 66,580 113,465 1,294,568 1,299,090 32,539 41 133,160 1
configure.ocaml no-host 3,747 1 2 2.7 28.7 149,874 12,471 6,514 7,821 70,840 71,213 1,693 3 50,000 0
configure.tcc no-host 48 0 0 1.3 26.2 30,629 30,629 0 1,584 14,646 14,399 271 0 50,000 0
configure.yash no-host 1,724 1 2 2.6 33.4 140,018 8,070 6,704 6,528 68,348 65,142 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 9.3 116,368 64,434 42,635 4,563 54,472 57,333 277 3 85,270 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 11 6 5.0 bash
15 no-host abuild-print-help 9 4 5 4.2 dash
23 no-host abuild-print-help 540 495 49 22.9 osh-cpython
31 no-host abuild-print-help 22 12 10 9.8 osh-native
39 no-host abuild-print-help 21 11 10 9.3 osh-native-souffle
1 no-host bin-true 609 322 324 3.1 bash
9 no-host bin-true 433 265 172 1.6 dash
17 no-host bin-true 2,419 832 1,851 18.2 osh-cpython
25 no-host bin-true 794 322 488 8.7 osh-native
33 no-host bin-true 798 309 508 8.4 osh-native-souffle
2 no-host configure.cpython 13,574 7,388 6,542 34.5 bash
10 no-host configure.cpython 13,626 7,352 6,654 34.4 dash
18 no-host configure.cpython 28,994 15,940 14,968 34.5 osh-cpython
26 no-host configure.cpython 14,724 7,418 7,599 34.5 osh-native
34 no-host configure.cpython 14,684 7,453 7,325 34.4 osh-native-souffle
4 no-host configure.ocaml 3,622 1,466 1,194 28.7 bash
12 no-host configure.ocaml 3,558 1,405 1,176 28.7 dash
20 no-host configure.ocaml 4,631 2,116 1,736 28.7 osh-cpython
28 no-host configure.ocaml 3,697 1,440 1,297 28.6 osh-native
36 no-host configure.ocaml 3,747 1,498 1,290 28.7 osh-native-souffle
5 no-host configure.tcc 45 28 18 26.0 bash
13 no-host configure.tcc 41 26 15 26.2 dash
21 no-host configure.tcc 224 165 63 26.3 osh-cpython
29 no-host configure.tcc 50 29 21 26.1 osh-native
37 no-host configure.tcc 48 28 20 26.2 osh-native-souffle
3 no-host configure.util-linux 12,321 6,404 6,359 39.6 bash
11 no-host configure.util-linux 13,144 6,391 7,224 39.5 dash
19 no-host configure.util-linux 32,035 20,045 13,034 39.6 osh-cpython
27 no-host configure.util-linux 13,722 6,379 7,576 39.6 osh-native
35 no-host configure.util-linux 13,778 6,264 7,587 39.6 osh-native-souffle
6 no-host configure.yash 1,666 929 744 33.4 bash
14 no-host configure.yash 1,613 906 708 33.4 dash
22 no-host configure.yash 2,444 1,446 1,040 33.5 osh-cpython
30 no-host configure.yash 1,741 948 796 33.4 osh-native
38 no-host configure.yash 1,724 984 743 33.4 osh-native-souffle
0 no-host hello-world 1 1 0 3.1 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 59 37 22 18.1 osh-cpython
24 no-host hello-world 3 2 1 6.9 osh-native
32 no-host hello-world 3 1 2 6.6 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,431 0 0 0 8 0 41 0 bash
15 no-host abuild-print-help 1,154 0 0 0 8 0 40 0 dash
23 no-host abuild-print-help 24,730 0 0 0 8 0 45 5 osh-cpython
31 no-host abuild-print-help 3,436 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,366 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 98,930 0 0 0 8 0 1,991 60 bash
9 no-host bin-true 49,350 0 0 0 8 0 2,977 50 dash
17 no-host bin-true 836,655 0 0 0 8 0 1,999 176 osh-cpython
25 no-host bin-true 135,215 0 0 0 16 0 1,984 91 osh-native
33 no-host bin-true 135,267 0 0 0 16 0 1,978 93 osh-native-souffle
2 no-host configure.cpython 1,622,927 0 0 0 25,272 0 14,050 1,065 bash
10 no-host configure.cpython 1,643,903 0 0 0 25,272 0 14,086 1,069 dash
18 no-host configure.cpython 5,995,840 0 0 0 25,272 0 12,876 870 osh-cpython
26 no-host configure.cpython 1,803,789 0 0 0 25,280 0 12,851 1,065 osh-native
34 no-host configure.cpython 1,772,565 0 0 0 25,280 0 12,843 1,076 osh-native-souffle
4 no-host configure.ocaml 298,907 0 0 0 4,432 0 2,010 199 bash
12 no-host configure.ocaml 280,582 0 0 0 4,432 0 2,101 187 dash
20 no-host configure.ocaml 558,104 0 0 0 4,432 0 1,911 189 osh-cpython
28 no-host configure.ocaml 316,208 0 0 0 4,440 0 1,997 213 osh-native
36 no-host configure.ocaml 316,503 0 0 0 4,440 0 1,996 212 osh-native-souffle
5 no-host configure.tcc 5,227 0 0 0 80 0 49 2 bash
13 no-host configure.tcc 4,219 0 0 0 88 0 52 1 dash
21 no-host configure.tcc 23,921 0 0 0 88 0 53 5 osh-cpython
29 no-host configure.tcc 5,922 0 0 0 96 0 47 2 osh-native
37 no-host configure.tcc 5,847 0 0 0 96 0 47 2 osh-native-souffle
3 no-host configure.util-linux 1,535,796 0 0 0 35,944 0 18,961 1,171 bash
11 no-host configure.util-linux 1,699,614 1 0 0 35,936 0 17,058 1,248 dash
19 no-host configure.util-linux 4,993,436 2 0 0 35,944 0 17,529 834 osh-cpython
27 no-host configure.util-linux 1,726,714 0 0 0 35,952 0 17,545 1,078 osh-native
35 no-host configure.util-linux 1,717,874 0 0 0 35,952 0 17,518 1,068 osh-native-souffle
6 no-host configure.yash 173,565 0 0 0 3,616 0 874 98 bash
14 no-host configure.yash 159,545 0 0 0 3,616 0 1,004 95 dash
22 no-host configure.yash 316,354 0 0 0 3,616 0 858 111 osh-cpython
30 no-host configure.yash 179,687 0 0 0 3,624 0 857 106 osh-native
38 no-host configure.yash 178,938 0 0 0 3,624 0 859 102 osh-native-souffle
0 no-host hello-world 153 0 0 0 8 0 1 0 bash
8 no-host hello-world 86 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,883 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 384 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 378 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-a76d7558
dash dash-cea41b3e
osh-cpython osh-f3ae4a6a
osh-native osh-a1f2d1ae
osh-native-souffle osh-20de6b73
host label host id
no-host no-host-31404de8