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 py bash ratio native bash ratio
abuild-print-help no-host 19 10 457 22 23.64 1.13
bin-true no-host 679 544 2,265 818 3.34 1.21
configure.cpython no-host 15,389 15,610 29,939 15,810 1.95 1.03
configure.ocaml no-host 3,873 3,848 4,735 3,920 1.22 1.01
configure.tcc no-host 48 43 198 51 4.09 1.05
configure.util-linux no-host 14,557 15,388 32,391 14,937 2.23 1.03
configure.yash no-host 1,887 1,825 2,488 1,880 1.32 1.00
hello-world no-host 1 1 55 3 36.83 1.94

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,519 1,095 22,979 3,156 9.12 1.25
bin-true no-host 106,350 66,408 752,561 128,386 7.08 1.21
configure.cpython no-host 2,218,039 2,245,161 6,113,694 2,225,728 2.76 1.00
configure.ocaml no-host 410,373 391,175 637,454 414,086 1.55 1.01
configure.tcc no-host 6,540 5,496 23,242 6,964 3.55 1.06
configure.util-linux no-host 2,108,313 2,260,296 5,304,205 2,000,287 2.52 0.95
configure.yash no-host 256,641 245,257 382,912 258,195 1.49 1.01
hello-world no-host 150 81 3,686 347 24.57 2.31

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 py bash ratio native bash ratio
abuild-print-help no-host 4.5 3.5 21.9 9.0 4.91 2.03
bin-true no-host 2.9 1.4 17.6 7.9 6.09 2.73
configure.cpython no-host 27.4 27.5 27.4 27.5 1.00 1.00
configure.ocaml no-host 20.4 20.6 20.6 20.6 1.01 1.01
configure.tcc no-host 19.3 19.4 19.3 19.3 1.00 1.00
configure.util-linux no-host 30.1 30.1 30.3 30.1 1.00 1.00
configure.yash no-host 24.4 24.2 24.2 24.4 0.99 1.00
hello-world no-host 2.8 1.6 17.4 6.2 6.33 2.24

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.2 3,737 3,737 0 681 1,887 1,169 2 0 50,000 0
bin-true no-host 818 1 2 2.6 7.9 154,702 13,054 2,807 9,731 78,356 66,615 5,012 3 50,000 0
configure.cpython no-host 15,810 1 65 15.0 27.5 1,772,678 49,205 28,516 86,378 908,108 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,937 3 66 21.3 30.1 2,703,414 44,775 65,801 109,640 1,320,606 1,273,168 49,081 41 131,602 1
configure.ocaml no-host 3,920 1 2 2.6 20.6 150,048 11,054 5,147 7,510 71,644 70,894 2,680 3 50,000 0
configure.tcc no-host 51 0 0 1.3 19.3 30,537 30,537 0 1,501 14,811 14,225 350 0 50,000 0
configure.yash no-host 1,880 1 2 2.6 24.4 139,705 7,972 6,608 6,317 70,316 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,280 64,463 42,671 4,552 54,556 57,172 478 3 85,342 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 11 9 4.5 bash
15 no-host abuild-print-help 10 8 2 3.5 dash
23 no-host abuild-print-help 457 413 46 21.9 osh-cpython
31 no-host abuild-print-help 22 15 7 9.0 osh-native
1 no-host bin-true 679 508 201 2.9 bash
9 no-host bin-true 544 417 138 1.4 dash
17 no-host bin-true 2,265 1,486 1,044 17.6 osh-cpython
25 no-host bin-true 818 571 263 7.9 osh-native
2 no-host configure.cpython 15,389 9,201 6,591 27.4 bash
10 no-host configure.cpython 15,610 9,077 6,967 27.5 dash
18 no-host configure.cpython 29,939 18,037 13,856 27.4 osh-cpython
26 no-host configure.cpython 15,810 9,309 6,770 27.5 osh-native
4 no-host configure.ocaml 3,873 1,678 1,234 20.4 bash
12 no-host configure.ocaml 3,848 1,691 1,176 20.6 dash
20 no-host configure.ocaml 4,735 2,356 1,587 20.6 osh-cpython
28 no-host configure.ocaml 3,920 1,723 1,238 20.6 osh-native
5 no-host configure.tcc 48 29 20 19.3 bash
13 no-host configure.tcc 43 25 18 19.4 dash
21 no-host configure.tcc 198 156 45 19.3 osh-cpython
29 no-host configure.tcc 51 29 22 19.3 osh-native
3 no-host configure.util-linux 14,557 8,982 6,066 30.1 bash
11 no-host configure.util-linux 15,388 9,497 6,395 30.1 dash
19 no-host configure.util-linux 32,391 21,285 12,241 30.3 osh-cpython
27 no-host configure.util-linux 14,937 8,887 6,250 30.1 osh-native
6 no-host configure.yash 1,887 1,063 832 24.4 bash
14 no-host configure.yash 1,825 1,040 788 24.2 dash
22 no-host configure.yash 2,488 1,443 1,086 24.2 osh-cpython
30 no-host configure.yash 1,880 1,091 794 24.4 osh-native
0 no-host hello-world 1 2 0 2.8 bash
8 no-host hello-world 1 1 0 1.6 dash
16 no-host hello-world 55 28 27 17.4 osh-cpython
24 no-host hello-world 3 0 3 6.2 osh-native

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,519 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,095 0 0 0 8 0 38 0 dash
23 no-host abuild-print-help 22,979 0 0 0 8 0 45 10 osh-cpython
31 no-host abuild-print-help 3,156 0 0 0 16 0 39 1 osh-native
1 no-host bin-true 106,350 0 0 0 8 0 1,985 115 bash
9 no-host bin-true 66,408 0 0 0 8 0 1,986 40 dash
17 no-host bin-true 752,561 0 0 0 8 0 1,988 267 osh-cpython
25 no-host bin-true 128,386 0 0 0 16 0 1,990 66 osh-native
2 no-host configure.cpython 2,218,039 0 0 0 32,928 0 14,552 1,202 bash
10 no-host configure.cpython 2,245,161 0 0 0 32,992 0 14,660 1,006 dash
18 no-host configure.cpython 6,113,694 0 0 0 27,512 0 13,211 1,205 osh-cpython
26 no-host configure.cpython 2,225,728 0 0 0 27,520 0 13,308 1,044 osh-native
4 no-host configure.ocaml 410,373 0 0 0 5,120 0 1,950 141 bash
12 no-host configure.ocaml 391,175 0 0 0 5,112 0 1,871 142 dash
20 no-host configure.ocaml 637,454 0 0 0 5,112 0 1,853 182 osh-cpython
28 no-host configure.ocaml 414,086 0 0 0 5,120 0 1,925 135 osh-native
5 no-host configure.tcc 6,540 0 0 0 104 0 49 1 bash
13 no-host configure.tcc 5,496 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,242 0 0 0 96 0 53 6 osh-cpython
29 no-host configure.tcc 6,964 0 0 0 104 0 47 3 osh-native
3 no-host configure.util-linux 2,108,313 2 0 0 42,400 0 18,677 1,117 bash
11 no-host configure.util-linux 2,260,296 2 0 0 42,584 0 17,485 918 dash
19 no-host configure.util-linux 5,304,205 6 0 0 39,152 0 16,904 1,369 osh-cpython
27 no-host configure.util-linux 2,000,287 0 0 0 39,128 0 16,998 1,033 osh-native
6 no-host configure.yash 256,641 0 0 0 4,120 0 873 88 bash
14 no-host configure.yash 245,257 0 0 0 3,720 0 871 86 dash
22 no-host configure.yash 382,912 0 0 0 3,728 0 852 94 osh-cpython
30 no-host configure.yash 258,195 0 0 0 3,736 0 849 78 osh-native
0 no-host hello-world 150 0 0 0 8 0 1 0 bash
8 no-host hello-world 81 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,686 0 0 0 8 0 7 6 osh-cpython
24 no-host hello-world 347 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-6bda13aa
dash dash-308ec8e6
osh-cpython osh-3afb180e
osh-native osh-d7660075
host label host id
no-host no-host-556df3ee