Jump to content
Wikipedia The Free Encyclopedia

File:Barplot language speeds (Benchmarks Game Mandelbrot).svg

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia
Original file (SVG file, nominally 974 ×ばつ 923 pixels, file size: 15 KB)
This is a file from the Wikimedia Commons. Information from its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Summary

DescriptionBarplot language speeds (Benchmarks Game Mandelbrot).svg
English: A Barplot of log transformed language speeds adapted from the Mandelbrot Benchmarks game (using the best performing scripts for a selection of languages). Four perforrmance categories were identified by using heirarchical clustering via the following R Script:
library(ggplot2)
# Enter the data in such a way to match the Plot
data<-
rbind(
c("C",0.97),
c("C++",0.84),
c("Go",3.75),
c("Rust",0.93),
c("Julia",1.32),
c("Python",163),
c("Lua",113),
c("Swift",1.4),
c("Intel Fortran",1.42),
c("Haskell GHC",1.51),
c("C#",3.14),
c("Chapel",3.34),
c("F#",3.77),
c("Pascal",3.86),
c("Ada",4.02),
c("Node JS",4.03),
c("LISP",4.09),
c("Java",4.15),
c("OCaml",7.53),
c("Dart",8.72),
c("Racket",10.45),
c("PHP",24.89),
c("Erlang",44),
c("Ruby",262)
)
data<-apply(data,2,rev)
data<-as.data.frame(data)
data[,2]<-as.numeric(data[,2])
data[,2]<-log(data[,2]+1)
# Make a Data Frame
df<-as.data.frame(data)
names(df)<-c("Language","Time")
df$Language<-factor(seq_len(nrow(df)),labels=df$Language)
df$Time<-as.numeric(df$Time)
# If you want it ordered in descending uncomment below
# df[rank(df$Time), ]
# Make sure the languages keep the order they were given in
# I want them in a specific order
df$Language<-factor(sort(df$Time),labels=df$Language)
factor(df$Language,ordered=TRUE,levels=rank(df$Time))
# Identify clusters with heirarchical clustering
times<-df$Time;names(times)<-df$Language
hc.av<-hclust(dist(times),method="average")
plot(hc.av)
df$Category<-factor(cutree(tree=hc.av,k=4))
levels(df$Category)<-rev(levels(df$Category))
# Build the Plot
p<-ggplot(df,aes(x=Language,y=Time,fill=Category))+
geom_col(col='black')+
labs(y="Log Time",
title="Comparison of Programming Language",subtitle="Log Time to Produce 16002 Mandelbrot")+
guides(fill=guide_legend("Performance\nCategory"))+
theme_classic()+
theme(axis.text.x=element_text(angle=90,vjust=0.5,hjust=1))+
coord_flip()
ggsave("/tmp/barplot_language_speeds.svg")
p
Date
Source Own work
Author Ryan Greenup

Licensing

I, the copyright holder of this work, hereby publish it under the following license:
w:en:Creative Commons
attribution share alike
This file is licensed under the Creative Commons Attribution-Share Alike 4.0 International license.
You are free:
  • to share – to copy, distribute and transmit the work
  • to remix – to adapt the work
Under the following conditions:
  • attribution – You must give appropriate credit, provide a link to the license, and indicate if changes were made. You may do so in any reasonable manner, but not in any way that suggests the licensor endorses you or your use.
  • share alike – If you remix, transform, or build upon the material, you must distribute your contributions under the same or compatible license as the original.
https://creativecommons.org/licenses/by-sa/4.0CC BY-SA 4.0 Creative Commons Attribution-Share Alike 4.0 truetrue
This media file is uncategorized.
Please help improve this media file by adding it to one or more categories, so it may be associated with related media files (how?), and so that it can be more easily found.

Please notify the uploader with
{{subst:Please link images|File:Barplot language speeds (Benchmarks Game Mandelbrot).svg}} ~~~~

Captions

A Barplot of log transformed language speeds

Items portrayed in this file

depicts

copyright status<\/a>"}},"text\/plain":{"en":{"":"copyright status"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":50423863,\"id\":\"Q50423863\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P6216":"copyrighted<\/a>"}},"text\/plain":{"en":{"P6216":"copyrighted"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P6216 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
inception<\/a>"}},"text\/plain":{"en":{"":"inception"}}},"{\"value\":{\"time\":\"+2021年07月09日T00:00:00Z\",\"timezone\":0,\"before\":0,\"after\":0,\"precision\":11,\"calendarmodel\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q1985727\"},\"type\":\"time\"}":{"text\/html":{"en":{"P571":"9 July 2021"}},"text\/plain":{"en":{"P571":"9 July 2021"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P571 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

9 July 2021

source of file<\/a>"}},"text\/plain":{"en":{"":"source of file"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":66458942,\"id\":\"Q66458942\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P7482":"original creation by uploader<\/a>"}},"text\/plain":{"en":{"P7482":"original creation by uploader"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P7482 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">
media type<\/a>"}},"text\/plain":{"en":{"":"media type"}}},"{\"value\":\"image\\\/svg+xml\",\"type\":\"string\"}":{"text\/html":{"en":{"P1163":"image\/svg+xml"}},"text\/plain":{"en":{"P1163":"image\/svg+xml"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P1163 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

image/svg+xml

checksum<\/a>"}},"text\/plain":{"en":{"":"checksum"}}},"{\"value\":\"fb7fb68a318413974581c24bfae4249bd6008784\",\"type\":\"string\"}":{"text\/html":{"en":{"P4092":"fb7fb68a318413974581c24bfae4249bd6008784"}},"text\/plain":{"en":{"P4092":"fb7fb68a318413974581c24bfae4249bd6008784"}}},"{\"value\":{\"entity-type\":\"property\",\"numeric-id\":459,\"id\":\"P459\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"":"determination method or standard<\/a>"}},"text\/plain":{"en":{"":"determination method or standard"}}},"{\"value\":{\"entity-type\":\"item\",\"numeric-id\":13414952,\"id\":\"Q13414952\"},\"type\":\"wikibase-entityid\"}":{"text\/html":{"en":{"P459":"SHA-1<\/a>"}},"text\/plain":{"en":{"P459":"SHA-1"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P4092 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

fb7fb68a318413974581c24bfae4249bd6008784

data size<\/a>"}},"text\/plain":{"en":{"":"data size"}}},"{\"value\":{\"amount\":\"+15653\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q8799\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P3575":"15,653 byte<\/span>"}},"text\/plain":{"en":{"P3575":"15,653 byte"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P3575 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

15,653 byte

height<\/a>"}},"text\/plain":{"en":{"":"height"}}},"{\"value\":{\"amount\":\"+923\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2048":"923 pixel<\/span>"}},"text\/plain":{"en":{"P2048":"923 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2048 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

923 pixel

width<\/a>"}},"text\/plain":{"en":{"":"width"}}},"{\"value\":{\"amount\":\"+974\",\"unit\":\"http:\\\/\\\/www.wikidata.org\\\/entity\\\/Q355198\"},\"type\":\"quantity\"}":{"text\/html":{"en":{"P2049":"974 pixel<\/span>"}},"text\/plain":{"en":{"P2049":"974 pixel"}}}}" class="wbmi-entityview-statementsGroup wbmi-entityview-statementsGroup-P2049 oo-ui-layout oo-ui-panelLayout oo-ui-panelLayout-framed">

974 pixel

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current08:35, 9 July 2021 Thumbnail for version as of 08:35, 9 July 2021 974 ×ばつ 923 (15 KB)Ryan Greenup Cross-wiki upload from en.wikipedia.org

The following page uses this file:

Global file usage

The following other wikis use this file:

Metadata

This file contains additional information, probably added from the digital camera or scanner used to create or digitize it.

If the file has been modified from its original state, some details may not fully reflect the modified file.

Width779.25pt
Height738.75pt

AltStyle によって変換されたページ (->オリジナル) /