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 443 22 23.66 1.18
bin-true no-host 656 564 2,215 799 3.38 1.22
configure.cpython no-host 14,560 14,806 27,953 14,919 1.92 1.02
configure.ocaml no-host 3,733 3,679 4,545 3,801 1.22 1.02
configure.tcc no-host 46 41 188 48 4.10 1.05
configure.util-linux no-host 13,655 14,600 30,414 14,139 2.23 1.04
configure.yash no-host 1,791 1,719 2,403 1,801 1.34 1.01
hello-world no-host 1 1 48 3 32.87 1.81

Minor Page Faults

workload host name bash dash osh-cpython osh-native py bash ratio native bash ratio
abuild-print-help no-host 2,562 1,127 23,493 3,235 9.17 1.26
bin-true no-host 108,270 65,349 754,515 126,096 6.97 1.16
configure.cpython no-host 2,217,019 2,251,092 6,166,836 2,227,557 2.78 1.00
configure.ocaml no-host 410,523 390,787 640,807 413,516 1.56 1.01
configure.tcc no-host 6,532 5,482 23,367 6,999 3.58 1.07
configure.util-linux no-host 2,094,137 2,264,437 5,346,003 2,021,280 2.55 0.97
configure.yash no-host 256,594 244,564 385,752 258,491 1.50 1.01
hello-world no-host 155 84 3,680 350 23.74 2.26

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.3 3.5 21.9 9.0 5.06 2.09
bin-true no-host 3.0 1.4 17.3 8.0 5.74 2.65
configure.cpython no-host 27.4 27.4 27.4 27.4 1.00 1.00
configure.ocaml no-host 20.6 20.6 20.6 20.9 1.00 1.01
configure.tcc no-host 19.3 19.1 19.4 19.4 1.01 1.01
configure.util-linux no-host 30.3 30.1 30.3 30.0 1.00 0.99
configure.yash no-host 24.4 24.2 24.4 24.4 1.00 1.00
hello-world no-host 2.9 1.4 17.3 6.3 6.00 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,727 3,727 0 684 1,877 1,166 2 0 50,000 0
bin-true no-host 799 1 2 2.7 8.0 154,692 12,992 2,799 11,737 78,346 64,609 5,012 3 50,000 0
configure.cpython no-host 14,919 1 56 15.8 27.4 1,772,668 49,197 28,508 101,770 908,098 762,800 42,399 60 50,000 0
configure.util-linux no-host 14,139 2 56 22.2 30.0 2,703,404 44,766 65,812 126,121 1,320,596 1,256,687 49,081 41 131,624 1
configure.ocaml no-host 3,801 1 2 2.7 20.9 150,038 11,045 5,138 8,602 71,634 69,802 2,680 3 50,000 0
configure.tcc no-host 48 0 0 1.3 19.4 30,527 30,527 0 1,599 14,801 14,127 350 0 50,000 0
configure.yash no-host 1,801 1 2 2.6 24.4 139,695 7,964 6,600 7,554 70,306 61,835 2,990 3 50,000 0
abuild-print-help no-host 22 1 2 2.8 9.0 116,270 64,455 42,663 4,610 54,546 57,114 478 3 85,326 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 17 3 4.3 bash
15 no-host abuild-print-help 9 8 2 3.5 dash
23 no-host abuild-print-help 443 393 53 21.9 osh-cpython
31 no-host abuild-print-help 22 17 6 9.0 osh-native
1 no-host bin-true 656 492 195 3.0 bash
9 no-host bin-true 564 438 135 1.4 dash
17 no-host bin-true 2,215 1,447 1,027 17.3 osh-cpython
25 no-host bin-true 799 558 254 8.0 osh-native
2 no-host configure.cpython 14,560 8,888 6,064 27.4 bash
10 no-host configure.cpython 14,806 8,982 6,246 27.4 dash
18 no-host configure.cpython 27,953 16,943 12,822 27.4 osh-cpython
26 no-host configure.cpython 14,919 8,954 6,231 27.4 osh-native
4 no-host configure.ocaml 3,733 1,582 1,187 20.6 bash
12 no-host configure.ocaml 3,679 1,603 1,094 20.6 dash
20 no-host configure.ocaml 4,545 2,188 1,559 20.6 osh-cpython
28 no-host configure.ocaml 3,801 1,616 1,224 20.9 osh-native
5 no-host configure.tcc 46 23 24 19.3 bash
13 no-host configure.tcc 41 23 18 19.1 dash
21 no-host configure.tcc 188 140 51 19.4 osh-cpython
29 no-host configure.tcc 48 29 20 19.4 osh-native
3 no-host configure.util-linux 13,655 8,575 5,544 30.3 bash
11 no-host configure.util-linux 14,600 8,935 6,154 30.1 dash
19 no-host configure.util-linux 30,414 20,349 11,115 30.3 osh-cpython
27 no-host configure.util-linux 14,139 8,610 5,726 30.0 osh-native
6 no-host configure.yash 1,791 1,062 737 24.4 bash
14 no-host configure.yash 1,719 1,006 715 24.2 dash
22 no-host configure.yash 2,403 1,484 960 24.4 osh-cpython
30 no-host configure.yash 1,801 1,047 759 24.4 osh-native
0 no-host hello-world 1 1 0 2.9 bash
8 no-host hello-world 1 0 1 1.4 dash
16 no-host hello-world 48 26 21 17.3 osh-cpython
24 no-host hello-world 3 3 0 6.3 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,562 0 0 0 16 0 41 0 bash
15 no-host abuild-print-help 1,127 0 0 0 8 0 39 0 dash
23 no-host abuild-print-help 23,493 0 0 0 8 0 47 5 osh-cpython
31 no-host abuild-print-help 3,235 0 0 0 16 0 41 1 osh-native
1 no-host bin-true 108,270 0 0 0 8 0 1,992 85 bash
9 no-host bin-true 65,349 0 0 0 8 0 1,987 111 dash
17 no-host bin-true 754,515 0 0 0 8 0 1,994 105 osh-cpython
25 no-host bin-true 126,096 0 0 0 16 0 1,989 88 osh-native
2 no-host configure.cpython 2,217,019 0 0 0 32,928 0 14,575 1,120 bash
10 no-host configure.cpython 2,251,092 0 0 0 32,992 0 14,687 1,032 dash
18 no-host configure.cpython 6,166,836 1 0 0 27,512 0 13,349 1,218 osh-cpython
26 no-host configure.cpython 2,227,557 0 0 0 27,520 0 13,336 1,122 osh-native
4 no-host configure.ocaml 410,523 0 0 0 5,120 0 1,945 171 bash
12 no-host configure.ocaml 390,787 0 0 0 5,112 0 1,898 156 dash
20 no-host configure.ocaml 640,807 1 0 0 5,112 0 1,855 190 osh-cpython
28 no-host configure.ocaml 413,516 0 0 0 5,120 0 1,923 187 osh-native
5 no-host configure.tcc 6,532 0 0 0 104 0 49 4 bash
13 no-host configure.tcc 5,482 0 0 0 96 0 47 2 dash
21 no-host configure.tcc 23,367 0 0 0 96 0 53 21 osh-cpython
29 no-host configure.tcc 6,999 0 0 0 104 0 47 2 osh-native
3 no-host configure.util-linux 2,094,137 0 0 0 42,400 0 18,573 1,379 bash
11 no-host configure.util-linux 2,264,437 3 0 0 42,584 0 17,489 1,091 dash
19 no-host configure.util-linux 5,346,003 11 0 0 39,144 0 17,048 1,214 osh-cpython
27 no-host configure.util-linux 2,021,280 0 0 0 39,120 0 17,190 977 osh-native
6 no-host configure.yash 256,594 0 0 0 4,120 0 869 71 bash
14 no-host configure.yash 244,564 0 0 0 3,720 0 867 88 dash
22 no-host configure.yash 385,752 0 0 0 3,728 0 859 80 osh-cpython
30 no-host configure.yash 258,491 0 0 0 3,736 0 855 81 osh-native
0 no-host hello-world 155 0 0 0 8 0 1 0 bash
8 no-host hello-world 84 0 0 0 8 0 1 1 dash
16 no-host hello-world 3,680 0 0 0 8 0 7 4 osh-cpython
24 no-host hello-world 350 0 0 0 16 0 1 0 osh-native

Shell and Host

shell label shell id
bash bash-7ab6149a
dash dash-308ec8e6
osh-cpython osh-94920364
osh-native osh-ee455be7
host label host id
no-host no-host-1c33b689