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 10 466 22 21 23.88 1.14
bin-true no-host 682 553 2,312 812 807 3.39 1.19
configure.cpython no-host 15,185 15,232 28,792 15,248 15,406 1.90 1.00
configure.ocaml no-host 3,828 3,751 4,656 3,825 3,811 1.22 1.00
configure.tcc no-host 48 41 202 49 48 4.21 1.03
configure.util-linux no-host 14,087 15,023 31,597 14,358 14,314 2.24 1.02
configure.yash no-host 1,832 1,775 2,476 1,854 1,830 1.35 1.01
hello-world no-host 1 1 56 3 3 37.22 1.91

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,518 1,099 23,716 3,210 3,100 9.42 1.27
bin-true no-host 104,325 66,440 774,133 126,070 124,190 7.42 1.21
configure.cpython no-host 2,218,588 2,243,608 6,236,744 2,216,658 2,223,765 2.81 1.00
configure.ocaml no-host 410,512 391,611 648,007 413,003 412,344 1.58 1.01
configure.tcc no-host 6,549 5,469 24,143 6,971 6,946 3.69 1.06
configure.util-linux no-host 2,096,985 2,260,847 5,395,459 1,999,178 1,985,129 2.57 0.95
configure.yash no-host 256,042 244,607 387,544 257,536 258,371 1.51 1.01
hello-world no-host 153 83 3,943 341 339 25.77 2.23

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.3 3.4 22.6 9.0 8.5 5.22 2.09
bin-true no-host 3.0 1.6 18.3 8.1 7.6 6.06 2.70
configure.cpython no-host 27.4 27.3 27.3 27.3 27.5 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.3 20.6 20.6 0.99 1.00
configure.tcc no-host 19.4 19.4 19.3 19.3 19.4 0.99 0.99
configure.util-linux no-host 30.1 30.1 30.1 30.0 30.1 1.00 1.00
configure.yash no-host 24.4 24.4 24.4 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.6 18.2 6.3 5.9 6.33 2.18

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.3 3,790 3,790 0 697 1,863 1,230 2 0 50,000 0
bin-true no-host 812 1 2 2.6 8.1 153,754 12,327 2,892 8,746 76,327 68,681 3,008 3 50,000 0
configure.cpython no-host 15,248 1 65 14.9 27.3 1,771,755 49,130 28,517 85,418 878,120 808,217 25,733 60 50,000 0
configure.util-linux no-host 14,358 3 61 21.2 30.0 2,702,521 45,805 65,716 108,694 1,290,645 1,303,182 32,239 41 131,432 1
configure.ocaml no-host 3,825 1 2 2.6 20.6 150,088 11,117 5,212 7,511 70,974 71,603 1,695 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.3 30,594 30,594 0 1,521 14,646 14,427 271 0 50,000 0
configure.yash no-host 1,854 1 2 2.6 24.4 139,420 8,029 6,691 5,992 67,947 65,481 2,095 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,300 64,408 42,618 4,535 54,441 57,324 277 3 85,236 1
hello-world no-host 3 0 0 0.3 5.9 3,789 3,789 0 698 1,863 1,228 2 0 50,000 0
bin-true no-host 807 1 2 2.6 7.6 153,753 12,116 2,830 8,747 76,327 68,679 3,008 3 50,000 0
configure.cpython no-host 15,406 1 63 14.9 27.5 1,771,754 49,068 28,455 85,419 878,120 808,215 25,733 60 50,000 0
configure.util-linux no-host 14,314 3 61 21.2 30.1 2,702,521 53,698 65,654 108,696 1,290,645 1,303,180 32,239 41 131,308 1
configure.ocaml no-host 3,811 1 2 2.6 20.6 150,088 11,055 5,150 7,513 70,974 71,601 1,695 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,594 30,594 0 1,523 14,646 14,425 271 0 50,000 0
configure.yash no-host 1,830 1 2 2.6 24.4 139,420 7,967 6,629 5,994 67,947 65,479 2,095 3 50,000 0
abuild-print-help no-host 21 1 2 2.8 8.5 116,299 64,346 42,556 4,536 54,441 57,322 277 3 85,112 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 14 6 4.3 bash
15 no-host abuild-print-help 10 4 5 3.4 dash
23 no-host abuild-print-help 466 412 57 22.6 osh-cpython
31 no-host abuild-print-help 22 16 6 9.0 osh-native
39 no-host abuild-print-help 21 16 6 8.5 osh-native-souffle
1 no-host bin-true 682 513 197 3.0 bash
9 no-host bin-true 553 428 132 1.6 dash
17 no-host bin-true 2,312 1,440 1,132 18.3 osh-cpython
25 no-host bin-true 812 605 222 8.1 osh-native
33 no-host bin-true 807 570 251 7.6 osh-native-souffle
2 no-host configure.cpython 15,185 9,320 6,267 27.4 bash
10 no-host configure.cpython 15,232 9,051 6,610 27.3 dash
18 no-host configure.cpython 28,792 17,967 12,692 27.3 osh-cpython
26 no-host configure.cpython 15,248 8,979 6,541 27.3 osh-native
34 no-host configure.cpython 15,406 8,815 6,731 27.5 osh-native-souffle
4 no-host configure.ocaml 3,828 1,669 1,201 20.6 bash
12 no-host configure.ocaml 3,751 1,581 1,188 20.6 dash
20 no-host configure.ocaml 4,656 2,225 1,646 20.3 osh-cpython
28 no-host configure.ocaml 3,825 1,559 1,301 20.6 osh-native
36 no-host configure.ocaml 3,811 1,650 1,197 20.6 osh-native-souffle
5 no-host configure.tcc 48 27 22 19.4 bash
13 no-host configure.tcc 41 28 14 19.4 dash
21 no-host configure.tcc 202 150 55 19.3 osh-cpython
29 no-host configure.tcc 49 34 16 19.3 osh-native
37 no-host configure.tcc 48 30 19 19.4 osh-native-souffle
3 no-host configure.util-linux 14,087 8,909 5,649 30.1 bash
11 no-host configure.util-linux 15,023 9,240 6,288 30.1 dash
19 no-host configure.util-linux 31,597 21,086 11,603 30.1 osh-cpython
27 no-host configure.util-linux 14,358 8,719 5,837 30.0 osh-native
35 no-host configure.util-linux 14,314 8,730 5,789 30.1 osh-native-souffle
6 no-host configure.yash 1,832 1,001 839 24.4 bash
14 no-host configure.yash 1,775 1,043 736 24.4 dash
22 no-host configure.yash 2,476 1,571 947 24.4 osh-cpython
30 no-host configure.yash 1,854 1,071 786 24.4 osh-native
38 no-host configure.yash 1,830 1,024 809 24.4 osh-native-souffle
0 no-host hello-world 1 2 0 2.9 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 56 32 23 18.2 osh-cpython
24 no-host hello-world 3 0 3 6.3 osh-native
32 no-host hello-world 3 3 0 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,518 0 0 0 16 0 40 1 bash
15 no-host abuild-print-help 1,099 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 23,716 0 0 0 8 0 45 6 osh-cpython
31 no-host abuild-print-help 3,210 0 0 0 16 0 39 2 osh-native
39 no-host abuild-print-help 3,100 0 0 0 16 0 39 1 osh-native-souffle
1 no-host bin-true 104,325 0 0 0 8 0 1,993 60 bash
9 no-host bin-true 66,440 0 0 0 8 0 1,991 127 dash
17 no-host bin-true 774,133 0 0 0 8 0 1,991 137 osh-cpython
25 no-host bin-true 126,070 0 0 0 16 0 1,994 48 osh-native
33 no-host bin-true 124,190 0 0 0 16 0 1,994 93 osh-native-souffle
2 no-host configure.cpython 2,218,588 0 0 0 32,928 0 14,529 1,040 bash
10 no-host configure.cpython 2,243,608 0 0 0 32,992 0 14,727 1,032 dash
18 no-host configure.cpython 6,236,744 1 0 0 27,512 0 13,208 1,233 osh-cpython
26 no-host configure.cpython 2,216,658 0 0 0 27,520 0 13,225 1,081 osh-native
34 no-host configure.cpython 2,223,765 0 0 0 27,520 0 13,261 856 osh-native-souffle
4 no-host configure.ocaml 410,512 0 0 0 5,120 0 1,939 166 bash
12 no-host configure.ocaml 391,611 0 0 0 5,112 0 1,899 152 dash
20 no-host configure.ocaml 648,007 0 0 0 5,112 0 1,852 175 osh-cpython
28 no-host configure.ocaml 413,003 0 0 0 5,120 0 1,932 157 osh-native
36 no-host configure.ocaml 412,344 0 0 0 5,120 0 1,934 161 osh-native-souffle
5 no-host configure.tcc 6,549 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,469 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 24,143 0 0 0 96 0 53 9 osh-cpython
29 no-host configure.tcc 6,971 0 0 0 104 0 47 1 osh-native
37 no-host configure.tcc 6,946 0 0 0 104 0 47 4 osh-native-souffle
3 no-host configure.util-linux 2,096,985 1 0 0 42,400 0 18,445 958 bash
11 no-host configure.util-linux 2,260,847 0 0 0 42,584 0 17,479 1,076 dash
19 no-host configure.util-linux 5,395,459 13 0 0 39,112 0 16,968 1,205 osh-cpython
27 no-host configure.util-linux 1,999,178 1 0 0 39,120 0 17,009 948 osh-native
35 no-host configure.util-linux 1,985,129 1 0 0 39,128 0 16,992 948 osh-native-souffle
6 no-host configure.yash 256,042 0 0 0 4,120 0 870 197 bash
14 no-host configure.yash 244,607 0 0 0 3,720 0 868 90 dash
22 no-host configure.yash 387,544 0 0 0 3,728 0 854 100 osh-cpython
30 no-host configure.yash 257,536 0 0 0 3,736 0 846 91 osh-native
38 no-host configure.yash 258,371 0 0 0 3,736 0 850 281 osh-native-souffle
0 no-host hello-world 153 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,943 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 341 0 0 0 16 0 1 0 osh-native
32 no-host hello-world 339 0 0 0 16 0 1 0 osh-native-souffle

Shell and Host

shell label shell id
bash bash-3c55cf19
dash dash-0ebcf347
osh-cpython osh-77bcfec8
osh-native osh-b6838a2c
osh-native-souffle osh-c9fe1ef6
host label host id
no-host no-host-556df3ee