HTML Preparation code:
Script Preparation code:
Tests:

Historical Performance Data aggregated from 186 community runs

Desktop Results:
Chrome 96 runs
appendChild
1.7M/s
append
1.4M/s

Fastest: appendChild (1.2x faster)

View exact numbers
  • appendChild: 1,703,819 ops/sec
  • append: 1,443,876 ops/sec
Firefox 71 runs
append
17K/s
appendChild
17K/s
View exact numbers
  • append: 16,707 ops/sec
  • appendChild: 16,504 ops/sec
Safari 8 runs
appendChild
6.1M/s
append
4.9M/s

Fastest: appendChild (1.2x faster)

View exact numbers
  • appendChild: 6,065,708 ops/sec
  • append: 4,892,600 ops/sec
Mobile Results:
Firefox 6 runs
append
16K/s
appendChild
13K/s

Fastest: append (1.3x faster)

View exact numbers
  • append: 15,962 ops/sec
  • appendChild: 12,619 ops/sec
Safari 5 runs
appendChild
7.0M/s
append
6.0M/s

Fastest: appendChild (1.2x faster)

View exact numbers
  • appendChild: 6,952,616 ops/sec
  • append: 5,984,926 ops/sec

Results show median performance across all community submissions. Run this benchmark yourself to verify on your device.

Rendered benchmark preparation results:

Suite status: <idle, ready to run>

Previous results
  • Test case name Result
    append
    appendChild

    Fastest: N/A

    Slowest: N/A

Latest run results:
Run details: (Test run date: 2 months ago)
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:146.0) Gecko/20100101 Firefox/146.0
Firefox 146 on Windows
View result in a separate tab
append
13K/s
appendChild
12K/s
View exact numbers
Test name Executions per second
append 12,627 Ops/sec
appendChild 12,235 Ops/sec