Test case name | Result |
---|---|
$("<option/>", {text: "potato", value: "potato").appendTo($foods); | |
$foods.append($("<options/>", {text: "potato", value: "potato"}); |
Test name | Executions per second |
---|---|
$("<option/>", {text: "potato", value: "potato").appendTo($foods); | 14410.2 Ops/sec |
$foods.append($("<options/>", {text: "potato", value: "potato"}); | 16596.2 Ops/sec |