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 9 459 22 23.67 1.13
bin-true no-host 684 543 2,253 816 3.29 1.19
configure.cpython no-host 15,394 15,743 29,383 15,696 1.91 1.02
configure.ocaml no-host 3,886 3,775 4,729 3,874 1.22 1.00
configure.tcc no-host 48 42 198 49 4.11 1.02
configure.util-linux no-host 14,451 15,179 32,199 14,503 2.23 1.00
configure.yash no-host 1,857 1,795 2,548 1,858 1.37 1.00
hello-world no-host 2 1 49 3 31.29 1.87

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,554 1,089 22,824 3,162 8.94 1.24
bin-true no-host 104,282 67,356 750,449 125,392 7.20 1.20
configure.cpython no-host 2,222,577 2,242,938 6,114,368 2,227,763 2.75 1.00
configure.ocaml no-host 410,349 390,809 638,256 414,033 1.56 1.01
configure.tcc no-host 6,565 5,464 23,288 7,011 3.55 1.07
configure.util-linux no-host 2,102,858 2,259,391 5,298,879 1,993,246 2.52 0.95
configure.yash no-host 256,525 244,870 383,750 256,395 1.50 1.00
hello-world no-host 152 82 3,689 348 24.27 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 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.3 17.6 7.9 6.09 2.73
configure.cpython no-host 27.5 27.1 27.3 27.5 0.99 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.6 1.00 1.00
configure.tcc no-host 19.1 19.3 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.1 30.3 30.3 30.3 1.00 1.00
configure.yash no-host 24.4 24.4 24.2 24.2 0.99 0.99
hello-world no-host 2.9 1.4 17.3 6.0 6.00 2.09

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.0 3,736 3,736 0 681 1,886 1,169 2 0 50,000 0
bin-true no-host 816 1 2 2.6 7.9 154,701 13,053 2,806 9,731 78,355 66,615 5,012 3 50,000 0
configure.cpython no-host 15,696 2 63 15.0 27.5 1,772,677 49,204 28,515 86,378 908,107 778,192 42,399 60 50,000 0
configure.util-linux no-host 14,503 3 61 21.3 30.3 2,703,413 42,779 65,820 109,640 1,320,605 1,273,168 49,081 41 131,640 1
configure.ocaml no-host 3,874 1 2 2.6 20.6 150,047 11,053 5,146 7,510 71,643 70,894 2,680 3 50,000 0
configure.tcc no-host 49 0 0 1.3 19.4 30,536 30,536 0 1,501 14,810 14,225 350 0 50,000 0
configure.yash no-host 1,858 1 2 2.6 24.2 139,704 7,971 6,607 6,317 70,315 63,072 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,279 64,462 42,670 4,552 54,555 57,172 478 3 85,340 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 12 8 4.5 bash
15 no-host abuild-print-help 9 5 5 3.5 dash
23 no-host abuild-print-help 459 421 41 21.9 osh-cpython
31 no-host abuild-print-help 22 18 5 9.0 osh-native
1 no-host bin-true 684 498 217 2.9 bash
9 no-host bin-true 543 416 139 1.3 dash
17 no-host bin-true 2,253 1,499 1,016 17.6 osh-cpython
25 no-host bin-true 816 582 249 7.9 osh-native
2 no-host configure.cpython 15,394 9,401 6,401 27.5 bash
10 no-host configure.cpython 15,743 9,466 6,684 27.1 dash
18 no-host configure.cpython 29,383 18,035 13,287 27.3 osh-cpython
26 no-host configure.cpython 15,696 9,182 6,776 27.5 osh-native
4 no-host configure.ocaml 3,886 1,650 1,273 20.6 bash
12 no-host configure.ocaml 3,775 1,605 1,186 20.6 dash
20 no-host configure.ocaml 4,729 2,255 1,685 20.6 osh-cpython
28 no-host configure.ocaml 3,874 1,675 1,233 20.6 osh-native
5 no-host configure.tcc 48 29 19 19.1 bash
13 no-host configure.tcc 42 27 15 19.3 dash
21 no-host configure.tcc 198 147 54 19.4 osh-cpython
29 no-host configure.tcc 49 32 18 19.4 osh-native
3 no-host configure.util-linux 14,451 9,013 5,919 30.1 bash
11 no-host configure.util-linux 15,179 9,357 6,313 30.3 dash
19 no-host configure.util-linux 32,199 21,448 11,878 30.3 osh-cpython
27 no-host configure.util-linux 14,503 8,750 5,945 30.3 osh-native
6 no-host configure.yash 1,857 1,057 807 24.4 bash
14 no-host configure.yash 1,795 1,050 743 24.4 dash
22 no-host configure.yash 2,548 1,610 978 24.2 osh-cpython
30 no-host configure.yash 1,858 1,105 757 24.2 osh-native
0 no-host hello-world 2 0 2 2.9 bash
8 no-host hello-world 1 1 0 1.4 dash
16 no-host hello-world 49 35 14 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.0 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,554 0 0 0 16 0 40 2 bash
15 no-host abuild-print-help 1,089 0 0 0 8 0 39 1 dash
23 no-host abuild-print-help 22,824 0 0 0 8 0 45 8 osh-cpython
31 no-host abuild-print-help 3,162 0 0 0 16 0 38 0 osh-native
1 no-host bin-true 104,282 0 0 0 8 0 1,989 131 bash
9 no-host bin-true 67,356 0 0 0 8 0 1,989 39 dash
17 no-host bin-true 750,449 0 0 0 8 0 1,986 296 osh-cpython
25 no-host bin-true 125,392 0 0 0 16 0 1,992 52 osh-native
2 no-host configure.cpython 2,222,577 0 0 0 32,928 0 14,469 1,203 bash
10 no-host configure.cpython 2,242,938 0 0 0 32,992 0 14,607 1,092 dash
18 no-host configure.cpython 6,114,368 1 0 0 27,512 0 13,210 1,265 osh-cpython
26 no-host configure.cpython 2,227,763 1 0 0 27,520 0 13,249 1,013 osh-native
4 no-host configure.ocaml 410,349 0 0 0 5,120 0 1,950 174 bash
12 no-host configure.ocaml 390,809 0 0 0 5,112 0 1,874 152 dash
20 no-host configure.ocaml 638,256 0 0 0 5,112 0 1,856 169 osh-cpython
28 no-host configure.ocaml 414,033 0 0 0 5,120 0 1,928 200 osh-native
5 no-host configure.tcc 6,565 0 0 0 104 0 49 3 bash
13 no-host configure.tcc 5,464 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,288 0 0 0 96 0 54 9 osh-cpython
29 no-host configure.tcc 7,011 0 0 0 104 0 47 4 osh-native
3 no-host configure.util-linux 2,102,858 1 0 0 42,408 0 18,608 1,079 bash
11 no-host configure.util-linux 2,259,391 0 0 0 42,592 0 17,443 1,042 dash
19 no-host configure.util-linux 5,298,879 13 0 0 39,112 0 16,963 1,425 osh-cpython
27 no-host configure.util-linux 1,993,246 0 0 0 39,120 0 16,972 1,016 osh-native
6 no-host configure.yash 256,525 0 0 0 4,120 0 871 95 bash
14 no-host configure.yash 244,870 0 0 0 3,720 0 866 133 dash
22 no-host configure.yash 383,750 1 0 0 3,728 0 855 103 osh-cpython
30 no-host configure.yash 256,395 0 0 0 3,736 0 850 84 osh-native
0 no-host hello-world 152 0 0 0 8 0 1 0 bash
8 no-host hello-world 82 0 0 0 8 0 1 0 dash
16 no-host hello-world 3,689 0 0 0 8 0 7 3 osh-cpython
24 no-host hello-world 348 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-04f26ffa
dash dash-308ec8e6
osh-cpython osh-8961f3da
osh-native osh-06f0b8de
host label host id
no-host no-host-556df3ee